Skip to content

Fix NEST native Tsodyks synapse handling (issue #810)#830

Merged
apdavison merged 2 commits intoNeuralEnsemble:masterfrom
apdavison:issue810
May 4, 2026
Merged

Fix NEST native Tsodyks synapse handling (issue #810)#830
apdavison merged 2 commits intoNeuralEnsemble:masterfrom
apdavison:issue810

Conversation

@apdavison
Copy link
Copy Markdown
Member

  • Replace string-based 'tsodyks' model name check with isinstance(TsodyksMarkramSynapse) in _connect() and _convergent_connect(), so tau_psc is only auto-copied from the post-synaptic neuron for the PyNN standard model, not for native_synapse_type.
  • Fix broken tau_psc read in _connect(), which was reading from non-existent connections; now reads directly from the post-synaptic population's node_collection.
  • Fix self.post -> projection.post in NESTConnectorMixin.synapse_parameters(), which caused AttributeError for inhibitory projections using the native connect path.
  • Add three regression tests covering native tsodyks_synapse (both _convergent_connect and _connect paths) and native tsodyks2_synapse.

- Replace string-based 'tsodyks' model name check with isinstance(TsodyksMarkramSynapse)
  in _connect() and _convergent_connect(), so tau_psc is only auto-copied from the
  post-synaptic neuron for the PyNN standard model, not for native_synapse_type.
- Fix broken tau_psc read in _connect(), which was reading from non-existent connections;
  now reads directly from the post-synaptic population's node_collection.
- Fix self.post -> projection.post in NESTConnectorMixin.synapse_parameters(), which
  caused AttributeError for inhibitory projections using the native connect path.
- Add three regression tests covering native tsodyks_synapse (both _convergent_connect
  and _connect paths) and native tsodyks2_synapse.
@apdavison apdavison added this to the 0.13.0 milestone May 4, 2026
@apdavison apdavison added the NEST label May 4, 2026
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 70.796% (+0.2%) from 70.642% — apdavison:issue810 into NeuralEnsemble:master

@apdavison
Copy link
Copy Markdown
Member Author

test failure is not related to the PR

@apdavison apdavison merged commit 81af6df into NeuralEnsemble:master May 4, 2026
2 of 14 checks passed
@apdavison apdavison deleted the issue810 branch May 4, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants