-
Notifications
You must be signed in to change notification settings - Fork 128
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
Replacing source_id by channel_id as multiprocessed simulation are crashing on this line #762
Conversation
|
…iketimes are contained in a tuple
Indeed, I didn't identify correctly the source of the problem when creating this fix. In the _get_current_segment() method, when the spike times are contained in a tuple, the SpikeTrainList object is created (here: https://github.com/NeuralEnsemble/PyNN/blob/master/pyNN/recording/__init__.py#L289 ) without any annotations corresponding to the source_id. I'll update the PR. |
Do you have any insight on why the tests are failing in the github action workflow? This confuses me because all nest tests pass successfully when I ran them locally (Linux, python 3.8.10, nest 3.3), and what causes the tests to fail there is not displayed as the workflow is cancelled before finishing. |
Seems to be that the tests are now using numpy 1.24, which removes see https://numpy.org/devdocs/release/1.24.0-notes.html#expired-deprecations
|
Thanks for the answer. At first I didn't think this that the presence of 'np.bool' was the reason for almost all the Nest tests failing, but I just noticed that Nest 3.3 faces the same problem: nest/nest-simulator#2571 |
I noticed that the new version of neo is using channel_id to get the id of neurons of the SpikeTrainList object. Multiprocessed nest simulations are crashing on this line of code, replacing channel_id by source_id there seems to solve this issue.