File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,15 +164,23 @@ def exportModel(self, modelParameters):
164164 return self .getJSONError ("Error while exporting the NetPyNE model" ,traceback .format_exc ())
165165
166166 def instantiateNetPyNEModel (self ):
167- sim .create (netParams , simConfig )
167+ import sys ; reload (sys )
168+ sim .initialize (netParams , simConfig ) # create network object and set cfg and net params
169+ sim .net .createPops () # instantiate network populations
170+ sim .net .createCells () # instantiate network cells based on defined populations
171+ sim .net .connectCells () # create connections between cells based on params
172+ sim .net .addStims () # add external stimulation to cells (IClamps etc)
173+
168174 sim .net .defineCellShapes () # creates 3d pt for cells with stylized geometries
169175 sim .gatherData (gatherLFP = False )
170176 #sim.saveData()
171177 return sim
172178
173179 def simulateNetPyNEModel (self ):
180+ import sys ; reload (sys )
181+ sim .setupRecording ()
174182 sim .simulate ()
175- sim .analyze ()
183+ sim .saveData ()
176184 return sim
177185
178186 def rename (self , path , oldValue ,newValue ):
You can’t perform that action at this time.
0 commit comments