myogen.simulator.neuron.network.Network.connect#

Network.connect(
source: str,
target: str,
probability: float = 1.0,
weight__uS: Quantity__uS = DEFAULT_SYNAPTIC_WEIGHT,
delay__ms: Quantity__ms = DEFAULT_SYNAPTIC_DELAY,
threshold__mV: Quantity__mV = DEFAULT_SPIKE_THRESHOLD,
deterministic: bool = False,
inhibitory: bool = False,
) list[source]#

Connect two neural populations with specified parameters.

Parameters:
  • source (str) – Name of source population (must exist in populations dict).

  • target (str) – Name of target population (must exist in populations dict).

  • probability (float, optional) – Connection probability between 0.0 and 1.0, by default 1.0. Each source-target neuron pair connects with this probability (if deterministic=False). If deterministic=True, each source connects to exactly int(probability × n_targets) targets.

  • weight__uS (float, optional) – Synaptic weight in microsiemens, by default 0.6.

  • delay__ms (float, optional) – Synaptic delay in milliseconds, by default 1.0.

  • threshold__mV (float, optional) – Spike threshold in millivolts, by default -10.0.

  • deterministic (bool, optional) – If True, each source neuron connects to exactly int(probability × n_targets) randomly selected target neurons. If False, uses probabilistic sampling. Default False.

  • inhibitory (bool, optional) – If True, connect to inhibitory synapses on target neurons (reversal < -40 mV). If False, connect to excitatory synapses (reversal >= -40 mV). Default False. Use inhibitory=True for connections from inhibitory interneurons (e.g., gII→aMN, gIb→aMN).

Returns:

List of created NEURON NetCon objects for this connection group.

Return type:

list[h.NetCon]

Raises:

ValueError – If source or target populations don’t exist, or probability out of range.