Skip to content
Snippets Groups Projects
Commit 83152c5a authored by HarshaRani's avatar HarshaRani
Browse files

Fixed assert by Upi

parent 0e5351e9
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,7 @@ def buildRdesigneur():
["glu", "#dend#,#apical#", "Gbar", "200*H(p-200e-6)" ], \
["NMDA", "#dend#,#apical#", "Gbar", "2*H(p-200e-6)" ] \
]
'''
spineDistrib = [ \
["spine", '#apical#', "spineSpacing", "20e-6", \
"spineSpacingDistrib", "2e-6", \
......@@ -129,7 +130,15 @@ def buildRdesigneur():
"size", "1", \
"sizeDistrib", "0.5" ] \
]
'''
spineDistrib = [
["spine", '#apical#',
"20e-6", "2e-6",
"1", "0.5",
"0", str( 2*PI ) ]
]
chemDistrib = []
spineProto = [['makeActiveSpine()', 'spine']]
######################################################################
# Here we define the mappings across scales. Format:
......@@ -145,19 +154,20 @@ def buildRdesigneur():
# with creating the model.
######################################################################
rd.addSpineProto() # This adds a version with an LCa channel by default.
#rd.addSpineProto() # This adds a version with an LCa channel by default.
rdes = rd.rdesigneur(
useGssa = useGssa, \
combineSegments = combineSegments, \
stealCellFromLibrary = True, \
passiveDistrib = passiveDistrib, \
spineDistrib = spineDistrib, \
chanDistrib = chanDistrib, \
chemDistrib = chemDistrib, \
cellProto = cellProto, \
chanProto = chanProto, \
chemProto = chemProto, \
useGssa = useGssa,
combineSegments = combineSegments,
stealCellFromLibrary = True,
passiveDistrib = passiveDistrib,
spineDistrib = spineDistrib,
chanDistrib = chanDistrib,
chemDistrib = chemDistrib,
cellProto = cellProto,
chanProto = chanProto,
chemProto = chemProto,
spineProto = spineProto,
adaptorList = adaptorList
)
#spineProto = spineProto, \
......@@ -185,7 +195,7 @@ def displayPlots():
comptDistance = dict( list(zip( neuron.compartments, neuron.pathDistanceFromSoma ) ))
for i in moose.wildcardFind( '/library/#[ISA=ChanBase]' ):
chans = moose.wildcardFind( '/model/elec/#/' + i.name )
print((i.name, len( chans )))
print ( i.name, len( chans ) )
p = [ 1e6*comptDistance.get( j.parent, 0) for j in chans ]
Gbar = [ j.Gbar/(j.parent.length * j.parent.diameter * PI) for j in chans ]
if len( p ) > 2:
......@@ -294,7 +304,7 @@ def create_ca_viewer(rdes):
return viewer
def build3dDisplay(rdes):
print("building 3d Display")
print (("building 3d Display"))
app = QtGui.QApplication(sys.argv)
vm_viewer = create_vm_viewer(rdes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment