Skip to content
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 setting min and max delay after resolution change #2702

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

mlober
Copy link
Contributor

@mlober mlober commented Apr 26, 2023

This PR fixes a bug in adjusting the minimum and maximum delay after a change in resolution.

When the new resolution exceeds the precision of the minimum and maximum delay, the minimum delay should be rounded down, while the maximum delay should be rounded up.

However, in the case of changing the resolution after setting the minimum and maximum delays in a separate call, the minimum delay was always rounded up instead of down. This is now fixed.

Since I added information about the rounding procedure in the case of a resolution change to the documentation, I suggest @jessica-mitchell as one of the reviewers.

mlober added a commit to mlober/nest-simulator that referenced this pull request Apr 26, 2023
@heplesser heplesser merged commit df44d0a into nest:master Apr 26, 2023
6 checks passed
@terhorstd terhorstd added T: Bug Wrong statements in the code or documentation S: High Should be handled next I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Jun 22, 2023
@terhorstd terhorstd added this to PRs in progress in Kernel via automation Jul 3, 2023
@jougs jougs moved this from PRs in progress to Done (PRs and issues) in Kernel Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: High Should be handled next T: Bug Wrong statements in the code or documentation
Projects
Kernel
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants