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

Clean up the kernel in preparation for the module system refactoring #2208

Merged
merged 141 commits into from
Feb 14, 2022

Conversation

jougs
Copy link
Contributor

@jougs jougs commented Nov 12, 2021

This PR is a bit of everything all over the place.

The main user-facing changes are summarized in the release notes file

To ease review of the many seemingly unconnected changes, here's a high-level list of changes contained:

  • Streamline the naming of model containers and access functions. Everything related to node models now has node_models in the name (used to be just models), everything connection model related has connection_model (used to be synapse_prototype or just prototype)
  • Make the SLI-level dictionaries modeldict, synapsedict, connruledict, growthcurvedict implementation details of the respective manages by providing proper access functions and removing all external references to them
  • Clean up and simplify the handling of the simulation resolution in SimulationManager and the setting of numbers of threads and virtual processes in VPManager
  • Make changing the number of threads less radical by introducing a change_number_of_threads() function in the manager interface that allows each manager to decide what to do, instead of calling finalize() and initialize() on each of them unconditionally
  • Clean up the registration and use of proxynodes and dummy_spike_sources and remove the related flag private_model from pertaining functions for registering models

jougs added 30 commits March 5, 2021 03:27
…ad of via modeldict

This also adapts all pertaining example and test files, both SLI and PyNEST
From this point on, modeldict is merely used within the ModelManager
@jougs
Copy link
Contributor Author

jougs commented Jan 13, 2022

@heplesser, @hakonsbm: many thanks for your detailed reviews. I've addressed all of your points and would be grateful if you could quickly resolve conversations where possible.

!! Please do not merge yet! This should only go into 3.3 and we first need to get 3.2 out.

@jougs jougs changed the title Clean up the kernel in preparation for the module refactoring Clean up the kernel in preparation for the module system refactoring Jan 13, 2022
Copy link
Contributor

@heplesser heplesser left a comment

Choose a reason for hiding this comment

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

@jougs Thanks a lot, especially for the re-instated and improved test! All fine now from my side.

Copy link
Contributor

@hakonsbm hakonsbm left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good to me now.

@heplesser
Copy link
Contributor

!! Please do not merge yet! This should only go into 3.3 and we first need to get 3.2 out.

Do you want to switch it to draft to avoid accidental merging?

@heplesser heplesser removed the request for review from stinebuu January 31, 2022 10:49
Copy link
Contributor

@stinebuu stinebuu left a 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 once formatting/tests pass again.

Kernel automation moved this from PRs pending approval to PRs approved Jan 31, 2022
@abigailm abigailm merged commit 6649606 into nest:master Feb 14, 2022
Kernel automation moved this from PRs approved to Done (PRs and issues) Feb 14, 2022
@jougs jougs mentioned this pull request Feb 23, 2022
@jougs jougs linked an issue Nov 28, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: Internal API Changes were introduced in basic internal workings of the simulator that developers need to know S: High Should be handled next T: Maintenance Work to keep up the quality of the code and documentation.
Projects
Kernel
  
Done
Development

Successfully merging this pull request may close these issues.

Dependency between nest.CopyModel and nest.Install
5 participants