-
Notifications
You must be signed in to change notification settings - Fork 14
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: handle edge case in synapse location calculation with syn_description #184
Conversation
also address #183 |
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.
Could you explain what you did with the synapses? I am not familiar with synapse stuff
sure, I added a description above, let me know if it is not clear
|
thanks for the explanations! |
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.
looks good!
Could you edit the description of the PR to say: "User cannot insert a point process located at positions 0 or 1 of a section if it needs an ion e.g. na, k, ca, cl etc. " ? I checked with IClamp in NEURON. It works when inserted at the 0 end of a single compartment model as it uses a NONSPECIFIC_CURRENT i. |
Thanks @darshanmandge for the precision, I have updated the text |
@ilkilic > Do you know how neurodamus is handling this? I'm surprised that position 0 isn't allowed. |
@ilkilic is away. I will comment to keep a record here. Based on our discussion internally, neurodamus handles this similar to the code in this PR in |
Thanks! We need to make sure these stay in sync. |
Yes. true. I will also discuss with @anilbey to find if there is any other code in bluecellulab that we should check to keep in sync with neurodamus for maintaining reproducibility in results. |
We have been using these regression tests for keeping them sync. For the new scientific features adding new regression on local SONATA networks will help. |
When retrieving the synapse location through
syn_description
, we did not properly handle cases where the location is 0. In NEURON, you cannot insert a synapse or any point process at the start (position 0) or end (position 1) of a segment if it needs an ion e.g. na, k, ca, cl etc. The section location must be strictly within the bounds (0, 1), excluding both endpoints.