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 conversion from heterogeneous to homogeneous connector when deleting last synapse of a type #566

Merged
merged 1 commit into from
Dec 12, 2016

Conversation

jakobj
Copy link
Contributor

@jakobj jakobj commented Nov 25, 2016

See #565 for a discussion of the issue. This PR fixes that issue and provides a test.
I suggest @sdiazpier and @suku248 as reviewers.

@jakobj jakobj force-pushed the fix565_sp_disables_connectors branch from b74aff5 to 5eb1b47 Compare November 25, 2016 23:25
Copy link
Contributor

@janhahne janhahne left a 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.
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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)

@heplesser heplesser added ZC: Kernel DO NOT USE THIS LABEL I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) ZP: PR Created DO NOT USE THIS LABEL S: High Should be handled next T: Bug Wrong statements in the code or documentation labels Dec 2, 2016
@jakobj jakobj force-pushed the fix565_sp_disables_connectors branch from 5eb1b47 to 1915f1c Compare December 11, 2016 18:57
@jakobj
Copy link
Contributor Author

jakobj commented Dec 11, 2016

Thanks @janhahne for the quick review. I have pushed a new version addressing all your comments.

@sdiazpier
Copy link
Contributor

Dear @jakobj thanks for fixing this issue. I agree with the solution 👍 from my side.

@heplesser
Copy link
Contributor

@janhahne Could you confirm that @jakobj has addressed your concerns successfully?

@janhahne
Copy link
Contributor

@heplesser @jakobj Yes, he did! Nice work 👍

@heplesser heplesser merged commit d87a66a into nest:master Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: High Should be handled next T: Bug Wrong statements in the code or documentation ZC: Kernel DO NOT USE THIS LABEL ZP: PR Created DO NOT USE THIS LABEL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants