vivarium-collective / vivarium-core

Core Interface and Engine for Vivarium
https://vivarium-core.readthedocs.io/
Apache License 2.0
25 stars 2 forks source link

correct emit_time for the global_time_precision #238

Closed eagmon closed 9 months ago

eagmon commented 9 months ago

Thanks to @pmendes for reporting this bug to me. The emit_time was showing some floating point rounding errors, which were not corrected by global_time_precision. This fix checks for global_time_precision and corrects the emit_time accordingly


By creating this pull request, I agree to the Contributor License Agreement, which is available in CLA.md at the top level of this repository.