Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Brian2Lava

Brian is an open-source Python package developed and used by the computational neuroscience community to simulate spiking neural networks. The goal of the Brian2Lava open-source project is to develop a Brian device interface for the neuromorphic computing framework Lava, in order to facilitate deployment of brain-inspired algorithms on Lava-supported hardware and emulator backends.

For more information, please see our website and the documentation.

For a rundown of the new features and bugfixes addressed in the latest version, see the Release Notes.

Getting started

Below you'll find information on how to quickly get Brian2Lava to run. For further information, please visit the documentation.

Note: Brian2Lava is still in its testing phase. Please feel free to report issues or feature requests.

Note: At the moment, due to legal restrictions, models for the Loihi2 backend may just be provided to members of the Intel Neuromorphic Research Community. Thus, the public version of Brian2Lava currently contains models for the CPU backend only.

Installation

Brian2Lava can be easily installed via the Python Package Index (pip):

python3 -m pip install brian2lava

Note: conda support may be added at a later point.

For the latest source code, please visit gitlab.com/brian2lava/brian2lava. If you run from source code, make sure that you have added your path to the source code to PYTHONPATH, for example, via:

export PYTHONPATH=~/brian2lava

Prerequisites

Make sure that you have installed Brian 2 (recommended >= 2.7.1) and Lava (recommended >= 0.10.0, or lava_loihi-0.7.0).

Import package and set device

Using Brian2Lava within Brian 2 only requires two steps.

First, import the package:

import brian2lava

Second, set the lava device with the desired hardware backend and mode:

set_device('lava', hardware='CPU', mode = 'preset')

In principle, this can already run your Brian simulation on the Lava engine. However, you may have to use a few additional settings to specify how the code for the simulation is generated and executed. Please see the documentation for more information.

You may want to continue by considering the example code provided here.

Dependencies

Brian2Lava currently includes the library of preset models as an external dependency. To make sure that you have the latest version of the library in your installation, navigate to the Brian2Lava package folder and run

source update_submodules.sh

or manually execute

git init
git submodule foreach 'git pull origin main'

This will pull the latest version of the public library of preset models from a GitHub repository into your local Brian2Lava installation.

Further dependencies can be found in setup.py.

Metadata

Release files for brian2lava 1.0.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brian2lava 1.0.0b2
File Size Uploaded Provenance Actions
brian2lava-1.0.0b2.tar.gz 157.8 kB Without provenance Details for brian2lava-1.0.0b2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for brian2lava 1.0.0b2
File Interpreter ABI Platform Actions
brian2lava-1.0.0b2-py3-none-any.whl Python 3 none any Details for brian2lava-1.0.0b2-py3-none-any.whl

Total release size: 493.9 kB

Release files / brian2lava-1.0.0b2.tar.gz

Download URL brian2lava-1.0.0b2.tar.gz
Size 157.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cc6da2e2da5268e18236fa5aaea2d61fd5cb10fa9b0b3815a722b52232966770
BLAKE2b-256 checksum
How to use checksums
a2d4bd8e278ab7734c53a716b4a003ca581c5b41ca5c65db7dd233ac4aa750cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / brian2lava-1.0.0b2-py3-none-any.whl

Download URL brian2lava-1.0.0b2-py3-none-any.whl
Size 336.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1eae7b157b3ca6b29dd338779f890577633bce327fdb799ec43f3ba31649852
BLAKE2b-256 checksum
How to use checksums
cc5efcad7f7797f4c956a1cdb062f0f5939a539840c16fc5ffb576151424b09d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for brian2lava 1.0.0b2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page