Skip to content

Commit

Permalink
Revert "Work around the synapse count exceeding issue"
Browse files Browse the repository at this point in the history
This reverts commit 54045ac.
Now that Issue nest#1043 is closed, there is no need for
such workaround. So, I restore the original version of
test_common_props_setting.sli, for it was cleaner.
  • Loading branch information
aserenko committed Jun 6, 2019
1 parent ce7730d commit c203bcd
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions testsuite/unittests/test_common_props_setting.sli
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,16 @@ Author: Hans E Plesser
{ synapsedict exch known } Select
def

% prepare stdp_dopamine_synapse, which needs a
% volume transmitter assigned to it before connecting
/vol /volume_transmitter Create def
/stdp_dopamine_synapse << /vt vol >> SetDefaults

% first test: do everything correctly
{
true
synmodels
{
% Reset the kernel to work around exceeding the maximum possible
% number of synapse models (see Issue #1043).
ResetKernel

% prepare stdp_dopamine_synapse, which needs a
% volume transmitter assigned to it before connecting
/vol /volume_transmitter Create def
/stdp_dopamine_synapse << /vt vol >> SetDefaults

/synmod Set
synmod << /tau_plus 5.0 /weight 2.0 >> SetDefaults
synmod GetDefaults [[/tau_plus /weight]] get [5.0 2.0] eq
Expand All @@ -72,19 +68,16 @@ def
} Fold
} assert_or_die

ResetKernel

% prepare stdp_dopamine_synapse, which needs a
% volume transmitter assigned to it before connecting
/vol /volume_transmitter Create def
/stdp_dopamine_synapse << /vt vol >> SetDefaults

% second test: set common prop on synapse
synmodels
{
% Reset the kernel to work around exceeding the maximum possible
% number of synapse models (see Issue #1043).
ResetKernel

% prepare stdp_dopamine_synapse, which needs a
% volume transmitter assigned to it before connecting
/vol /volume_transmitter Create def
/stdp_dopamine_synapse << /vt vol >> SetDefaults

/synmod Set
synmod GetDefaults /tau_plus get /tpref Set

Expand Down

0 comments on commit c203bcd

Please sign in to comment.