Synapses and inputs
Use this route when the task connects spike-producing groups, applies synaptic
code, configures delays or plasticity, or supplies Poisson, timed, or explicit
spike input in Brian2 2.9.0. The route is deliberately workflow-oriented:
first define the source/target and synaptic equations, then create connections,
assign existing synapse state, and only then run and inspect event effects.
Route map
- API signatures, indexing, pathway names, and input-class boundaries: api-reference.md
- End-to-end construction, timing, replay, and validation recipes: workflows.md
- Conditional/probabilistic connectivity, event-driven traces, STDP, and summed variables: connectivity-and-plasticity.md
- Install/import, optional dependency, data/configuration, API misuse, timing, and workflow recovery: troubleshooting.md
- Run a tiny deterministic connectivity and delayed-spike assertion: connectivity_smoke.py
Operating contract
- Keep neuron equation semantics, units, thresholds, resets, and state-updater
choice with modeling and
units-and-equations. This route consumes a
valid spike source and target variable.
- A
Synapses constructor defines model/pathways; it does not create
synapses. Call connect(...) before indexing or assigning synaptic arrays.
- Use explicit
_pre/_post suffixes when a name could be ambiguous. Assign
w, delay, and other synapse state after the relevant connections exist.
- Treat event-driven variables as values updated at event times, not as
continuously observable traces. Ensure their dependencies remain compatible
with event-driven integration.
- Choose
PoissonGroup when individual spikes matter, PoissonInput when only
aggregate independent input matters, SpikeGeneratorGroup for reproducible
event schedules, and TimedArray for sampled time functions.
- Validate units,
dt/delay alignment, event binning, and output timing with a
small fixture before scaling. Monitor analysis belongs to
recording; device and standalone restrictions belong
to code-generation.
The bundled smoke script is read-only with respect to the repository and uses
only a tiny in-memory runtime simulation; it does not download data or run
native repository tests.
1---2name: synapses-and-inputs3description: "Define Brian2 2.9.0 synaptic connectivity, event pathways, delays,4 plasticity, and explicit or stochastic input sources."5disable-model-invocation: true6metadata:7 source: https://skillmd.com/skills/vectorspacelab/synapses-and-inputs8 disco-role: operating9license: NOASSERTION10---1112# Synapses and inputs1314Use this route when the task connects spike-producing groups, applies synaptic15code, configures delays or plasticity, or supplies Poisson, timed, or explicit16spike input in Brian2 2.9.0. The route is deliberately workflow-oriented:17first define the source/target and synaptic equations, then create connections,18assign existing synapse state, and only then run and inspect event effects.1920## Route map2122- API signatures, indexing, pathway names, and input-class boundaries: [api-reference.md](references/api-reference.md)23- End-to-end construction, timing, replay, and validation recipes: [workflows.md](references/workflows.md)24- Conditional/probabilistic connectivity, event-driven traces, STDP, and summed variables: [connectivity-and-plasticity.md](references/connectivity-and-plasticity.md)25- Install/import, optional dependency, data/configuration, API misuse, timing, and workflow recovery: [troubleshooting.md](references/troubleshooting.md)26- Run a tiny deterministic connectivity and delayed-spike assertion: [connectivity_smoke.py](scripts/connectivity_smoke.py)2728## Operating contract29301. Keep neuron equation semantics, units, thresholds, resets, and state-updater31 choice with [modeling](../modeling/SKILL.md) and32 [units-and-equations](../units-and-equations/SKILL.md). This route consumes a33 valid spike source and target variable.342. A `Synapses` constructor defines model/pathways; it does **not** create35 synapses. Call `connect(...)` before indexing or assigning synaptic arrays.363. Use explicit `_pre`/`_post` suffixes when a name could be ambiguous. Assign37 `w`, `delay`, and other synapse state after the relevant connections exist.384. Treat event-driven variables as values updated at event times, not as39 continuously observable traces. Ensure their dependencies remain compatible40 with event-driven integration.415. Choose `PoissonGroup` when individual spikes matter, `PoissonInput` when only42 aggregate independent input matters, `SpikeGeneratorGroup` for reproducible43 event schedules, and `TimedArray` for sampled time functions.446. Validate units, `dt`/delay alignment, event binning, and output timing with a45 small fixture before scaling. Monitor analysis belongs to46 [recording](../recording/SKILL.md); device and standalone restrictions belong47 to [code-generation](../code-generation/SKILL.md).4849The bundled smoke script is read-only with respect to the repository and uses50only a tiny in-memory runtime simulation; it does not download data or run51native repository tests.