Keep variable_step_size settings in gillespie
@@ -449,6 +449,7 @@ class ExtendedRoadRunner(roadrunner.RoadRunner):
"""
integratorName = self.integrator.getName()
+ vss = self.integrator.variable_step_size
if (integratorName != 'gillespie'):
self.setIntegrator('gillespie')
self.integrator.variable_step_size = True
@@ -462,4 +463,5 @@ class ExtendedRoadRunner(roadrunner.RoadRunner):
s = self.simulate(*args, **kwargs)
self.setIntegrator(integratorName)
+ self.integrator.variable_step_size = vss
return s
