UC-Davis-molecular-computing / ppsim

Python package for simulating population protocols
MIT License
10 stars 5 forks source link

Bugfix in Simulation.run #28

Closed EricESeverson closed 3 years ago

EricESeverson commented 3 years ago

If the simulator tried to run for an amount of time that was smaller than the next simulated interaction, it would still simulate at least one interaction. This could lead to Simulation.simulator.t and Simulation.time becoming out of sync if the history_interval was sufficiently small.

The time_to_steps function used in Simulation.run has now been changed to fix this.