-
-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug with identical steps with different end times #3516
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
Should we hold this until the next release? I am not sure what would be best. |
All code that goes into develop now is held off until the next release, except critical bug fixes, at least that is how it should be ... |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3516 +/- ##
========================================
Coverage 99.58% 99.58%
========================================
Files 256 256
Lines 20116 20117 +1
========================================
+ Hits 20033 20034 +1
Misses 83 83 ☔ View full report in Codecov by Sentry. |
* fix bug with identical steps with different end times * add copy method for steps * undo testing changes * fix failing tests * update CHANGELOG * remove copy method as it is unused * remove raw termination as unused
Description
Fixes a bug in which identical steps but with different end times could not be distinguished, and thus crashed the simulation by using a wrong end time.
It is a hacky fix, a more robust one should be implemented as part of the refactor in #3176.
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ pre-commit run
(or$ nox -s pre-commit
) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)$ python run-tests.py --all
(or$ nox -s tests
)$ python run-tests.py --doctest
(or$ nox -s doctests
)You can run integration tests, unit tests, and doctests together at once, using
$ python run-tests.py --quick
(or$ nox -s quick
).Further checks: