class brainpy.dyn.SynConn(pre, post, conn=None, name=None, mode=None)[source]#

Base class to model two-end synaptic connections.

  • pre (NeuGroup) – Pre-synaptic neuron group.

  • post (NeuGroup) – Post-synaptic neuron group.

  • conn (optional, ndarray, ArrayType, dict, TwoEndConnector) – The connection method between pre- and post-synaptic groups.

  • name (str, optional) – The name of the dynamic system.


Check whether post group satisfies the requirement.


Check whether pre group satisfies the requirement.

update(*args, **kwargs)[source]#

The function to specify the updating rule.

Assume any dynamical system depends on the shared variables (sha), like time variable t, the step precision dt, and the time step i.