Skip to content

Commit

Permalink
move synaptic plasticity precise spike timing feature to nest#2035
Browse files Browse the repository at this point in the history
  • Loading branch information
C.A.P. Linssen committed Aug 30, 2021
1 parent 9c1cfa9 commit fb9228d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion models/stdp_synapse.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ inline void
stdp_synapse< targetidentifierT >::send( Event& e, thread t, const CommonSynapseProperties& )
{
// synapse STDP depressing/facilitation dynamics
const double t_spike = e.get_stamp().get_ms() - e.get_offset();
const double t_spike = e.get_stamp().get_ms();

// use accessor functions (inherited from Connection< >) to obtain delay and
// target
Expand Down
1 change: 0 additions & 1 deletion nestkernel/connector_base_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ Connector< ConnectionT >::send_weight_event( const thread tid,
wr_e.set_port( e.get_port() );
wr_e.set_rport( e.get_rport() );
wr_e.set_stamp( e.get_stamp() );
wr_e.set_offset( e.get_offset() );
wr_e.set_sender( e.get_sender() );
wr_e.set_sender_node_id( kernel().connection_manager.get_source_node_id( tid, syn_id_, lcid ) );
wr_e.set_weight( e.get_weight() );
Expand Down
4 changes: 1 addition & 3 deletions testsuite/pytests/test_stdp_synapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,7 @@ def test_stdp_synapse(self):
self.init_params()
for self.dendritic_delay in [1., self.resolution]:
self.init_params()
for self.nest_neuron_model in ["iaf_psc_exp",
"iaf_cond_exp",
"iaf_psc_exp_ps"]:
for self.nest_neuron_model in ["iaf_psc_exp", "iaf_cond_exp"]:
fname_snip = "_[nest_neuron_mdl=" + self.nest_neuron_model + "]"
self.do_nest_simulation_and_compare_to_reproduced_weight(fname_snip=fname_snip)

Expand Down

0 comments on commit fb9228d

Please sign in to comment.