static_synapse_hom_w#

class brainpy.state.static_synapse_hom_w(*args, **kwargs)#

Static synapse with a single weight shared across all connections.

Parameters:
  • weight (ArrayLike or Quantity, optional) – The common synaptic weight (pA; bare numbers are interpreted as pA). Default 1.0 pA.

  • delay (Quantity, optional) – Homogeneous axonal delay (> 0). Default 1.0 ms.

  • receptor_type (int, optional) – Postsynaptic receptor port (>= 0). Default 0.

See also

static_synapse

Per-connection-weight static synapse.

Notes

Attempting to give individual connections their own weight is rejected, as in NEST: check_synapse_params() raises when a connection syn_spec carries a 'weight' key, and set_weight() raises with NEST’s “Setting of individual weights is not possible!” message.

Examples

>>> import brainunit as u
>>> from brainpy.state import static_synapse_hom_w
>>> s = static_synapse_hom_w(weight=2.0 * u.pA)
>>> s.is_homogeneous_weight
True
>>> s.edge_state_init()
{}
static check_synapse_params(syn_spec)[source]#

Reject per-connection weight in a connection spec (NEST parity).

static set_weight(weight)[source]#

Reject setting an individual weight (NEST parity).