Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.6
-
Fix Version/s: 2.1
-
Component/s: TVB-Simulator
-
Labels:
-
Environment:python 3.6
-
Epic Link:
Description
When I try to do step by step simulation, I get a problems.
I propose to change the line 391 of simulator file :
n_steps = int(math.ceil(self.simulation_length / self.integrator.dt))
by the following line :
n_steps = numpy.rint(self.simulation_length / self.integrator.dt).astype(int)
The change is to round at the nearest interger and not the highest integer.
This modification avoids error when the floating number is convert to integer.