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

Fix monitor indexing issues #202

Merged
merged 4 commits into from
Aug 6, 2021

Conversation

denisalevi
Copy link
Member

@denisalevi denisalevi commented Apr 14, 2021

This PR fixes #50 and our equivalent of brian-team/brian2#1119.

I opened #201 as follow-up issue of #50 with unsolved comments (statemonitor only uses 1 block currently).

Tests are running.

@denisalevi denisalevi force-pushed the fix-monitor-indexing-issues branch 2 times, most recently from f62749c to 15f97ef Compare April 14, 2021 14:14
@denisalevi denisalevi changed the base branch from master to update-brian2-submodule August 4, 2021 13:46
Fixes #50. Issue was the same as in PR brian-team/brian2#1119. We need
to update the monitor's `N` variable on CUDA side and we need to update
the device variable since it is copied to the host variable in
`write_arrays()`. And we need to use `WRITES_TO_READ_ONLY_VARIABLES`,
otherwise `N` will be cached in brian2 and not loaded after simulation.
@denisalevi denisalevi merged commit 6c0c1d2 into update-brian2-submodule Aug 6, 2021
@denisalevi denisalevi deleted the fix-monitor-indexing-issues branch August 6, 2021 13:41
@denisalevi denisalevi restored the fix-monitor-indexing-issues branch August 7, 2021 13:48
@denisalevi denisalevi deleted the fix-monitor-indexing-issues branch August 7, 2021 13:49
denisalevi added a commit that referenced this pull request Aug 8, 2021
Update brian2 submodule to last version using nosetest
Collection of following PRs: #218, #219, #223, #227, #202, #209
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.

StateMonitor idexing with slice syntax doesn't work
1 participant