Skip to content

Updates 2026#23

Open
rowleya wants to merge 4 commits into
OpenSourceBrain:masterfrom
SpiNNakerManchester:updates_2026
Open

Updates 2026#23
rowleya wants to merge 4 commits into
OpenSourceBrain:masterfrom
SpiNNakerManchester:updates_2026

Conversation

@rowleya

@rowleya rowleya commented Mar 4, 2026

Copy link
Copy Markdown

Some updates to match some changes to SpiNNaker software (that was specifically referenced in the code) and other updates that make this easier to use in my opinion! This includes:

  • Create separate example files for NEST and SpiNNaker by default. This gives two examples to go with.
  • Move the sim_params to the example files since this is generally specific to the example.
  • Add the ability to do setup in the sim_params, since the setup tends to be simulator-specific anyway.
  • Pass in the sim to avoid the need to add this to sim params, and allow it to be imported in the example.
  • Fix for recent numpy version
  • Use the simulator RandomDistribution (since sPyNNaker has a version of its own for example).
  • Add in the "pop_random" input, which better distributes the v0 at the start of simulation.

Copilot AI review requested due to automatic review settings March 4, 2026 12:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the PyNN microcircuit examples and network setup flow to better support simulator-specific configuration (notably SpiNNaker) and improve initialization behavior.

Changes:

  • Split the single example into dedicated NEST and SpiNNaker example scripts, moving sim params into those examples.
  • Pass the simulator module into Network and allow simulator-specific setup via sim_dict['setup_func']().
  • Add population-specific voltage initialization (pop_random) and switch to per-simulator RandomDistribution.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
PyNN/sim_params.py Removes centralized sim params in favor of per-example configuration.
PyNN/network_params.py Adds per-population V0 mean/SD arrays to support pop_random init.
PyNN/network.py Refactors simulator handling, setup flow, directory handling, distributions, and v-init options.
PyNN/helpers.py Updates NumPy-related construction to be compatible with newer NumPy behavior.
PyNN/example_spinnaker.py Adds a dedicated SpiNNaker runnable example and simulator-specific setup function.
PyNN/example_nest.py Adds a dedicated NEST runnable example and simulator-specific setup function.
PyNN/example.py Removes the old single example entrypoint.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread PyNN/example_spinnaker.py Outdated
Comment thread PyNN/network.py Outdated
Comment thread PyNN/network.py
Comment thread PyNN/example_nest.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants