ssa.Endtime has strange behaviour
Status: Beta
Brought to you by:
tmd200
With the attached model the the behaviour of Endtime is not consistent when changed more than once
In [2]: ssa = stompy.SSA()
In [3]: ssa.Model(File='131037482406.psc',dir='c:\\stompy\\pscmodels'
In [4]: ssa.Endtime(100)
Info: the simulation endtime is: 100.0
In [5]: ssa.Run()
Info: 1 trajectory is generated
Number of time steps 262 End time 4.7989856092
Simulation time 0.0160000324249
StomPy test file
In [8]: ssa.Endtime(5)
Info: the simulation endtime is: 5.0
In [9]: ssa.Run()
Info: 1 trajectory is generated
Number of time steps 395 End time 5.02136157842
In [10]: ssa.Endtime(50)
Info: the simulation endtime is: 50.0
In [11]: ssa.Run()
Info: 1 trajectory is generated
Number of time steps 5032 End time 50.0016795685
Simulation time 0.203000068665
In [12]: ssa.Endtime(500)
Info: the simulation endtime is: 500.0
In [13]: ssa.Run()
Info: 1 trajectory is generated
Number of time steps 2316 End time 29.9765941339
Simulation time 0.108999967575
Simulation time 0.0309998989105
I've encountered the same with ssa.Timesteps() and it appears as if the simulator is terminating prematurely .... do you you know why this is? If this is normal behaviour?
this may be peculiar to this model and the way it is initialised.
This bug is solved from version 1.0