Default to variable step size when points/steps are specified when using gillespie
@@ -481,8 +481,14 @@ class ExtendedRoadRunner(roadrunner.RoadRunner):
:param kwargs: parameters for simulate
:returns: simulation results
"""
+
integratorName = self.integrator.getName()
self.setIntegrator('gillespie')
+ if (len(args) > 2):
+ self.integrator.variable_step_size = False
+ elif (kwargs.has_key('points') or kwargs.has_key('steps')):
+ self.integrator.variable_step_size = False
s = self.simulate(*args, **kwargs)
+ self.integrator.variable_step_size = True
self.setIntegrator(integratorName)
return s
