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 (
ArrayLikeorQuantity, optional) – The common synaptic weight (pA; bare numbers are interpreted as pA). Default1.0pA.delay (
Quantity, optional) – Homogeneous axonal delay (> 0). Default1.0 ms.receptor_type (
int, optional) – Postsynaptic receptor port (>= 0). Default0.
See also
static_synapsePer-connection-weight static synapse.
Notes
Attempting to give individual connections their own weight is rejected, as in NEST:
check_synapse_params()raises when a connectionsyn_speccarries a'weight'key, andset_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() {}