@@ -75,7 +75,7 @@ def extractPopulations(self, netpyne_model, netpyne_geppetto_library, geppetto_m
7575 if 'pt3d' in sec ['geom' ]:
7676 points = sec ['geom' ]['pt3d' ]
7777 for i in range (len (points ) - 1 ):
78- # draw soma as a cylinder, not as a sphere (more accurate representation of 3d pts)
78+ # draw soma as a cylinder, not as a sphere (more accurate representation of 3d pts)
7979 visualType .variables .append (self .factory .createCylinder (str (sec_name ),
8080 bottomRadius = float (
8181 points [i ][3 ] / 2 ),
@@ -93,20 +93,17 @@ def extractPopulations(self, netpyne_model, netpyne_geppetto_library, geppetto_m
9393 # Save the cell position and update elements in defaultValue and size
9494 populations [cell ['tags' ]['pop' ]].size = populations [cell ['tags' ]['pop' ]].size + 1
9595 populations [cell ['tags' ]['pop' ]].defaultValue .elements .append (
96- ArrayElement (index = len (populations [cell ['tags' ]['pop' ]].defaultValue .elements ),
97- position = Point (
98- x = float (cell ['tags' ]['x' ] * getattr (netpyne_model .net .params ,
99- "cellsVisualizationSpacingMultiplierX" , 1.0 )),
100- y = - float (cell ['tags' ]['y' ] * getattr (netpyne_model .net .params ,
101- "cellsVisualizationSpacingMultiplierY" , 1.0 )),
102- z = float (cell ['tags' ]['z' ] * getattr (netpyne_model .net .params ,
103- "cellsVisualizationSpacingMultiplierZ" , 1.0 ))
104- )
105- )
96+ ArrayElement (
97+ index = len (populations [cell ['tags' ]['pop' ]].defaultValue .elements ),
98+ position = Point (
99+ x = float (cell ['tags' ]['x' ] * netpyne_model .net .params .cellsVisualizationSpacingMultiplier [0 ]),
100+ y = - float (cell ['tags' ]['y' ] * netpyne_model .net .params .cellsVisualizationSpacingMultiplier [1 ]),
101+ z = float (cell ['tags' ]['z' ] * netpyne_model .net .params .cellsVisualizationSpacingMultiplier [2 ])
102+ )
103+ )
106104 )
107105
108106 def extractInstances (self , netpyne_model , netpyne_geppetto_library , geppetto_model ):
109107 instance = pygeppetto .Variable (id = 'network' )
110108 instance .types .append (netpyne_geppetto_library .types [0 ])
111109 geppetto_model .variables .append (instance )
112- pass
0 commit comments