superneuromat.SNN.delete_synapses#
- SNN.delete_synapses(synapse_ids: Sequence[int] | Sequence[Synapse], reindex: bool = True, _rebuild_connection_ids: bool = True)[source]#
Deletes a list of synapses from the network.
Because synapses are stored in the SNN as a list, deleting synapses may cause a shift in the indices of other synapses. If you are manually modifying the lists of synapse parameters, you may find it hard to keep track of what’s what.
However, if you use
Synapse
s or aSynapseListView
, then the shift in indices will be automatically handled, and those objects will reflect the new indices while still referring to the same synapses that you’d expect.Warning
Deleting synapses may result in unexpected behavior, as it can cause large shifts in the indices of synapses. Use with caution.