Metadata-Version: 2.4
Name: brian2-atlas
Version: 0.2.0
Summary: Brian2 Atlas: Brian-compatible simulation and native training backends
Author: Xinjun Li, Marcel Stimberg, Dan Goodman, Benjamin Evans, Romain Brette
License-Expression: CECILL-2.1 AND Apache-2.0
Project-URL: Homepage, https://github.com/RockLi/brian2-atlas
Project-URL: Documentation, https://github.com/RockLi/brian2-atlas/blob/v0.2.0/documentation/README.md
Project-URL: Source, https://github.com/RockLi/brian2-atlas
Project-URL: Tracker, https://github.com/RockLi/brian2-atlas/issues
Project-URL: Upstream, https://github.com/brian-team/brian2
Project-URL: Preprint, https://github.com/RockLi/brian2-atlas-preprint
Keywords: computational neuroscience,simulation,neural networks,spiking neurons,biological neural networks,research
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSES/Apache-2.0.txt
License-File: LICENSES/Brian2-LICENSE
License-File: LICENSE_SCOPE.md
License-File: NOTICE
License-File: AUTHORS
License-File: CONTRIBUTORS
Requires-Dist: numpy>=2.2.0
Requires-Dist: cython>=0.29.21
Requires-Dist: sympy>=1.2
Requires-Dist: pyparsing!=3.2.4,>=3
Requires-Dist: jinja2>=2.7
Requires-Dist: py-cpuinfo; platform_system == "Windows"
Requires-Dist: setuptools>=61
Requires-Dist: packaging
Provides-Extra: cloud
Requires-Dist: modal>=1.5.5; extra == "cloud"
Provides-Extra: examples
Requires-Dist: matplotlib>=3.9; extra == "examples"
Requires-Dist: joblib>=1.4; extra == "examples"
Requires-Dist: noise>=1.2.2; extra == "examples"
Requires-Dist: opencv-python-headless>=4.10; extra == "examples"
Requires-Dist: progressbar2>=4.5; extra == "examples"
Requires-Dist: sbi>=0.25; extra == "examples"
Provides-Extra: test
Requires-Dist: pytest>=8; extra == "test"
Requires-Dist: pytest-xdist>=1.22.3; extra == "test"
Requires-Dist: pytest-cov>=2.0; extra == "test"
Requires-Dist: pytest-timeout; extra == "test"
Provides-Extra: docs
Requires-Dist: sphinx<9,>=7; extra == "docs"
Requires-Dist: ipython>=5; extra == "docs"
Requires-Dist: sphinx-tabs; extra == "docs"
Dynamic: license-file

# Brian2 Atlas

Brian2 Atlas provides native simulation and training backends for the Brian2
modelling interface. Define spiking neural networks in Python, then run supported
models with the bundled native CPU engine. Additional backends support
model-specialized CPU execution, CUDA, Apple Metal, MPI and browser export.

This is alpha research software. Backend support depends on the model and the
installed toolchains; unsupported constructs raise capability errors.

## Installation

Requires Python 3.12 or newer. Use a new virtual environment: this distribution
includes `brian2` and must not be installed alongside the separate upstream
`Brian2` distribution, which owns the same import paths.

Install version `0.2.0` from PyPI:

```sh
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install brian2-atlas==0.2.0
```

Version `0.2.0` provides CPython 3.12–3.14 wheels for Linux x86_64 (glibc 2.28+)
and macOS 15+ on Apple Silicon (arm64) and Intel (x86_64), plus a source archive.
Windows wheels are not published.
A matching platform wheel includes `b2-runner`, `b2-train` and the Python
extensions. A source installation requires Rust/Cargo 1.98.1 and C/C++ compilers.
Specialized AOT execution needs Rust even after installing a wheel. CUDA, Metal
and MPI require additional system software. Windows is not currently qualified.
See the [installation guide](https://github.com/RockLi/brian2-atlas/blob/v0.2.0/documentation/INSTALLATION.md)
for source installation, platform coverage and optional dependencies.

## First simulation

```python
import brian2 as b
import brian2_atlas

b.set_device("atlas", engine="reference")
neurons = b.NeuronGroup(
    1, "dv/dt = (1.5-v)/(10*ms) : 1",
    threshold="v>1", reset="v=0", method="euler", dt=0.1*b.ms,
)
spikes = b.SpikeMonitor(neurons)
b.Network(neurons, spikes).run(100*b.ms)
print(spikes.num_spikes)  # 9
```

Use `brian2` for modelling and `brian2_atlas` for Atlas APIs. The older
`brian2_rust` import remains a compatibility alias. The Atlas distribution
version and Brian2 compatibility version are separate values.

## Documentation

- [0.2.0 release notes](https://github.com/RockLi/brian2-atlas/blob/v0.2.0/documentation/RELEASE_NOTES_0.2.0.md)

- [Quickstart: simulation and native training](https://github.com/RockLi/brian2-atlas/blob/v0.2.0/documentation/QUICKSTART.md)
- [Backend guide](https://github.com/RockLi/brian2-atlas/blob/v0.2.0/brian2-rust/README.md)
- [Training guide](https://github.com/RockLi/brian2-atlas/blob/v0.2.0/brian2-rust/TRAINING.md)
- [AtlasIR specification](https://github.com/RockLi/brian2-atlas/blob/v0.2.0/brian2-rust/AtlasIR.md)
- [Issues](https://github.com/RockLi/brian2-atlas/issues)

These links identify the `0.2.0` release. This release includes
experimental neuromorphic software conversion; see the repository's versioned
guides for the admitted models and evidence. Software conversion results do not
establish physical chip execution, power or latency.

## License and citation

The combined distribution uses **CeCILL-2.1 AND Apache-2.0**. Upstream Brian2 and
derived code retain their original terms; original Atlas engine work uses
Apache-2.0. See the
[license scope](https://github.com/RockLi/brian2-atlas/blob/v0.2.0/LICENSE_SCOPE.md).
Use [CITATION.cff](https://github.com/RockLi/brian2-atlas/blob/v0.2.0/CITATION.cff)
for Atlas and retain the upstream Brian2 citation when using its frontend.
The [preprint repository](https://github.com/RockLi/brian2-atlas-preprint)
contains the manuscript and historical experiment records.
