Skip to content

Commit

Permalink
fixed picklesteps
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Kan authored and Anton Kan committed Jul 1, 2015
1 parent 8cf57c8 commit df8038e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CellModeller/Simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Simulator:
def __init__(self, \
moduleName, \
dt, \
outputSteps=50, \
pickleSteps=50, \
outputDirName=None, \
moduleStr=None, \
saveOutput=False, \
Expand All @@ -45,6 +45,7 @@ def __init__(self, \
self.phys = None
self.sig = None
self.integ = None
self.pickleSteps = pickleSteps

# No cells yet, initialise indices and empty lists/dicts, zero counters
self._next_id = 1
Expand Down Expand Up @@ -91,7 +92,6 @@ def __init__(self, \
# Set up the data output directory
self.dataOutputInitialised=False
self.outputDirName = outputDirName
self.outputSteps = outputSteps
self.setSaveOutput(saveOutput)
'''
self.saveOutput = saveOutput
Expand Down Expand Up @@ -337,7 +337,7 @@ def step(self):
if state.divideFlag:
self.divide(state)

if self.saveOutput and self.stepNum%self.outputSteps==0:
if self.saveOutput and self.stepNum%self.pickleSteps==0:
self.writePickle()

self.stepNum += 1
Expand Down
2 changes: 1 addition & 1 deletion Examples/Tutorial_1/Tutorial_1a.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def setup(sim):
sim.addRenderer(therenderer)

# Specify how often data is saved
sim.pickleSteps = 20
sim.pickleSteps = 100

def init(cell):
# Specify mean and distribution of initial cell size
Expand Down

0 comments on commit df8038e

Please sign in to comment.