-
Notifications
You must be signed in to change notification settings - Fork 370
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 conversion from heterogeneous to homogeneous connector when deleting last synapse of a type #566
Conversation
b74aff5
to
5eb1b47
Compare
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.
I agree with your analysis in issue #565 and this PR is a good solution to the problem. I only have a couple of minor comments regarding the new unit test. Once they are addressed I am happy 👍
Thanks a lot for fixing that!
Synopsis: (issue-565) run -> NEST exits if test fails | ||
|
||
Description: | ||
This test provokes a switch from a heterogeneous connector to a homogeneous connector using the structural plasticity framework and asserts that the resulting homogeneous connector is correctly used. |
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.
This line could use a line break
|
||
% Delete the first connection again, causing the heterogeneous | ||
% connector to be turned into a homogeneous connector | ||
[2] cvgidcollection [1] cvgidcollection << /rule /all_to_all >> << /model /static_synapse >> Disconnect_g_g_D_D |
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.
Same here, maybe add a line break after /all_to_all >>
% The spike detector should have recorded three events | ||
{ | ||
3 GetStatus /n_events get 3 eq | ||
} assert_or_die |
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.
I see from your example in the issue #565 how this ensures that everything works properly, but wouldn't it be much more fail-safe to add another simulation to this unit test where one neuron with the same parameters is just connected to the spike detector (without disconnecting a temporary connection) and then (after both simulations) to compare the actual spike times recorded by the spike detector?
M_ERROR setverbosity | ||
|
||
% Create neurons and spike detector | ||
/iaf_neuron 2 << /I_e 400. >> Create /neurons Set |
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.
Use iaf_psc_alpha
instead (see PR #526)
last synapse of a type
5eb1b47
to
1915f1c
Compare
Thanks @janhahne for the quick review. I have pushed a new version addressing all your comments. |
Dear @jakobj thanks for fixing this issue. I agree with the solution 👍 from my side. |
@heplesser @jakobj Yes, he did! Nice work 👍 |
See #565 for a discussion of the issue. This PR fixes that issue and provides a test.
I suggest @sdiazpier and @suku248 as reviewers.