Skip to content

Commit df8038e

Browse files
Anton KanAnton Kan
authored andcommitted
fixed picklesteps
1 parent 8cf57c8 commit df8038e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CellModeller/Simulator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Simulator:
3434
def __init__(self, \
3535
moduleName, \
3636
dt, \
37-
outputSteps=50, \
37+
pickleSteps=50, \
3838
outputDirName=None, \
3939
moduleStr=None, \
4040
saveOutput=False, \
@@ -45,6 +45,7 @@ def __init__(self, \
4545
self.phys = None
4646
self.sig = None
4747
self.integ = None
48+
self.pickleSteps = pickleSteps
4849

4950
# No cells yet, initialise indices and empty lists/dicts, zero counters
5051
self._next_id = 1
@@ -91,7 +92,6 @@ def __init__(self, \
9192
# Set up the data output directory
9293
self.dataOutputInitialised=False
9394
self.outputDirName = outputDirName
94-
self.outputSteps = outputSteps
9595
self.setSaveOutput(saveOutput)
9696
'''
9797
self.saveOutput = saveOutput
@@ -337,7 +337,7 @@ def step(self):
337337
if state.divideFlag:
338338
self.divide(state)
339339

340-
if self.saveOutput and self.stepNum%self.outputSteps==0:
340+
if self.saveOutput and self.stepNum%self.pickleSteps==0:
341341
self.writePickle()
342342

343343
self.stepNum += 1

Examples/Tutorial_1/Tutorial_1a.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def setup(sim):
2222
sim.addRenderer(therenderer)
2323

2424
# Specify how often data is saved
25-
sim.pickleSteps = 20
25+
sim.pickleSteps = 100
2626

2727
def init(cell):
2828
# Specify mean and distribution of initial cell size

0 commit comments

Comments
 (0)