executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
configuration-and-troubleshootingInstall and validate Brian2 2.9.0 environments, configure preferences, caches, and logging, and triage import, compiler, optional-dependency, and common runtime failures.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this route when Brian2 cannot be imported, a package/compiler prerequisite
is unclear, a preference unexpectedly changes the code-generation or cache
configuration, or a log is needed to classify a failure. This route covers
Brian2 2.9.0 with Python >=3.12 and the brian2 import root.
scripts/ directory (or by passing that script's
relative path), run python scripts/check_brian2_env.py. Confirm Python
=3.12, distribution
Brian2==2.9.0, every declared base dependency and version constraint, and that an incomplete source checkout is not shadowing the intended installation. The checker is read-only and does not reveal executable or cache paths.
prefs.codegen.target, compiler settings, or Cython cache settings. The
current-directory preference file overrides the user preference file.This route owns installation, importability, required package presence, compiler/Cython prerequisite diagnosis, preference-file precedence and validation, cache ownership/permissions, logging diagnostics, and generic failure triage. It does not own detailed code-generation target selection, generated-code APIs, standalone project design, model equations, scheduling, or workflow-specific failures. After recording environment facts here, route those details to code-generation, modeling, simulation-and-recording, recording, spatial-models, or units-and-equations, respectively.
Optional packages are capability boundaries, not automatic requirements:
brian2tools is a separate
visualization/analysis package.pytest>=8 is the test extra needed by brian2.test(). A full test run is
not the default response to a user-model failure.import brian2 as necessary but insufficient: target, compiler,
optional capability, cache access, and requested workflow need separate
evidence.brian2.test() resets preferences while it runs and restores them afterward;
use a narrow target/marker selection when diagnosing rather than launching
the complete suite by default.--help first; --strict gates required
Python/package/import/version checks, and --require-compiler adds a
compiler-name gate.The script reports compiler names and capability states, not local paths, Python prefixes, or cache locations.