superneuromat.SNN.get_synapse#

SNN.get_synapse(pre_id: int | Neuron, post_id: int | Neuron) Synapse[source]#

Returns the synapse that connects the given pre- and post-synaptic neurons.

Parameters:
Return type:

Synapse

Raises:
  • IndexError – If no matching synapse is found.

  • TypeError – When pre_id or post_id is not a Neuron or neuron ID (int).