brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
brian2Use Brian2 for clock-driven spiking-neural-network modeling, simulation, synaptic connectivity, input generation, recording, physical-unit equations, spatial neurons, runtime code generation, and C++ standalone workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
Brian2 is a Python simulator for spiking neural networks. Use this skill when a
request names Brian2, NeuronGroup, Synapses, Network, monitors, Brian
units/equations, set_device, cpp_standalone, or a related simulation error.
This skill is a self-contained operating guide for Brian2 2.9.0-style APIs; it
does not require reopening the source repository.
python -m pip install brian2 (or use
the documented Conda package). Install optional packages only for a selected
workflow: a C++ compiler for Cython/standalone, GSL for GSL state updaters,
and plotting/scientific packages only when needed.python -c "import brian2; print(brian2.__version__)".scripts/check_brian2_env.py. It reports
package/import/compiler/optional-dependency signals without changing files.prefs.codegen.target = "numpy" and a tiny model when compiler
availability is unknown. Move to Cython or C++ standalone only after reading
the code-generation route and its limitations.modeling.units-and-equations.TimedArray: read synapses-and-inputs.run, Network, clocks, scheduling, snapshots, repeated trials, or
progress/profile diagnostics: read
simulation-and-recording.recording.set_device, C++ standalone, compiler/cache issues,
or GSL: read code-generation.SpatialNeuron, or SWC/section geometry: read
spatial-models.configuration-and-troubleshooting.Most real tasks cross routes: define and validate equations first, create
synapses and inputs second, assemble an explicit Network for nontrivial
lifecycle control, add monitors before running, and choose a device only after
the CPU/NumPy behavior is understood. Follow the links above rather than
copying every API table into this router.
sin, exp, clip, rand, etc.) and
declare dimensions explicitly.Synapses(...) defines pathways but does not create connections; call
connect(...) before assigning synaptic state.StateMonitor records at its configured schedule (default when="start"),
and its array index is relative to the selected recording indices.run collects visible objects only. Prefer Network(...) when objects
are in containers, runs are staged, or train/test snapshots must be exact.references/repo-provenance.md before
deciding whether this graph matches a checkout or needs refreshing.references/troubleshooting.md for
cross-cutting installation, import, dependency, cache, and lifecycle triage.--help output and selecting a tiny, bounded fixture.