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

Make SpikeGeneratorGroup work for run_args #1578

Open
mstimberg opened this issue Jan 16, 2025 · 0 comments
Open

Make SpikeGeneratorGroup work for run_args #1578

mstimberg opened this issue Jan 16, 2025 · 0 comments

Comments

@mstimberg
Copy link
Member

The run_args feature is very useful for simulations where you want to present different stimuli to a network, but currently this only works if you can represent the stimulus as the initial value of a state variable (e.g. the rates of a PoissonGroup), or as the values in a TimedArray. You cannot change the values of a SpikeGeneratorGroup, since it currently checks and prepares the data structures in Python code. If we moved this preparation into the templates, it would become possible to switch out the spikes indices/times for every run via run_args. See this related discussion: https://brian.discourse.group/t/dynamically-loading-spiketimes-in-a-spikegeneratorgroup-on-c-standalone-mode/1369/3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant