Skip to content

Commit 076da0a

Browse files
committed
fixed missing sim.simulate(); added import sys; reload(sys) to show output in terminal
1 parent 6d2cad2 commit 076da0a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def exportModel(self, modelParameters):
164164
return self.getJSONError("Error while exporting the NetPyNE model",traceback.format_exc())
165165

166166
def instantiateNetPyNEModel(self):
167+
import sys; reload(sys)
167168
sim.initialize(netParams, simConfig) # create network object and set cfg and net params
168169
sim.net.createPops() # instantiate network populations
169170
sim.net.createCells() # instantiate network cells based on defined populations
@@ -176,7 +177,9 @@ def instantiateNetPyNEModel(self):
176177
return sim
177178

178179
def simulateNetPyNEModel(self):
180+
import sys; reload(sys)
179181
sim.setupRecording()
182+
sim.simulate()
180183
sim.saveData()
181184
return sim
182185

0 commit comments

Comments
 (0)