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

Correctly build connection infrastructure in GetConnections also when secondary events in use #2615

Merged
merged 4 commits into from
Mar 24, 2023

Conversation

heplesser
Copy link
Contributor

This PR fixes #2614 with a straightforward solution: update_delay_extrema_() and check_wfr_use() are now called before update_connection_infrastructure() also when the connection infrastructure is built by get_connections(). This is necessary because if no nodes or connections are added between a GetConnections and a Simulate call, the infrastructure built by get_connections() is used. This requires information about the data size in secondary events, which again depends on min_delay.

PEP8 fixes in two unrelated files because they were detected by check_code_style.

This entire process needs to be refactored at a later stage, this is just a bug fix.

@heplesser heplesser 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 Feb 18, 2023
@heplesser heplesser added this to PRs in progress in Kernel via automation Feb 18, 2023
Copy link
Member

@nicolossus nicolossus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the bug fix! Besides the minor typo, this looks good to me.

nestkernel/connection_manager.cpp Outdated Show resolved Hide resolved
Co-authored-by: Nicolai Haug <39106781+nicolossus@users.noreply.github.com>
@heplesser heplesser merged commit 29de611 into nest:master Mar 24, 2023
Kernel automation moved this from PRs in progress to Done (PRs and issues) Mar 24, 2023
@heplesser heplesser deleted the fix-2614-getconn-crash branch September 15, 2023 18:00
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.

GetConnections crashes simulation with gap junctions
3 participants