-
Notifications
You must be signed in to change notification settings - Fork 357
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
Add functions yielding source neurons given target neurons #2394
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these useful functions. I have just a few minor suggestions.
This seems not critical and might need a bit more time for a reaction, since @ackurth is busy at the moment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR. It looks largely fine, but I have added some suggestions.
Co-authored-by: Håkon Bakke Mørk <hakon.mork@nmbu.no>
Co-authored-by: Håkon Bakke Mørk <hakon.mork@nmbu.no>
Co-authored-by: Håkon Bakke Mørk <hakon.mork@nmbu.no>
Co-authored-by: Håkon Bakke Mørk <hakon.mork@nmbu.no>
…dd_functions_on_sources
Co-authored-by: Håkon Bakke Mørk <hakon.mork@nmbu.no>
Co-authored-by: Håkon Bakke Mørk <hakon.mork@nmbu.no>
Co-authored-by: Hans Ekkehard Plesser <hans.ekkehard.plesser@nmbu.no>
Co-authored-by: Hans Ekkehard Plesser <hans.ekkehard.plesser@nmbu.no>
Co-authored-by: Hans Ekkehard Plesser <hans.ekkehard.plesser@nmbu.no>
Co-authored-by: Hans Ekkehard Plesser <hans.ekkehard.plesser@nmbu.no>
Thanks for the very thorough review and the nice comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! See my reply of my previous review.
For some reason, after bringing the branch up to date with master, the static code check does not pass anymore. |
@ackurth, welcome to the mysteries of your formatting checker ... The test of unchanged files may be induced by the merge. The only fix is to correct the formatting ;). |
In my work with spatial networks,I find it oftentimes useful to have an easy interface for accessing, plotting etc. the source neurons of a given target neuron.
Currently, while there are function to get information of target neurons given source neurons
nest.GetTargetNodes
,nest.GetTargetPositions
as well as a plotting routinenest.PlotTargets
, functionality regarding the other way (i.e. about source neurons given a target neuron) is lacking.This PR addresses this and introduces
nest.GetSourceNodes
,nest.GetSourcePositions
,nest.PlotTargets
for the NEST Python API.Or is there a reason I don't see yet for not having these functions as well?