From Fedora Project Wiki

Description

This test case ensures that the Brian2 simulator functions correctly on install.

Setup

  1. Run a current Fedora release: even a virtual machine is OK.
  2. Install nest: sudo dnf install python3-brian2.
  3. If testing an update, please ensure that the build in the update is being installed: sudo dnf --enablerepo=updates-testing install python3-brian2.

How to test

  1. In a terminal, run the ipython3 interpreter: ipython3
  2. Try to import the brian modules: from brian2 import *
  3. Run an example simulation from the Brian2 documentation: https://brian2.readthedocs.io/en/stable/examples/IF_curve_LIF.html

Expected Results

  1. Brian2 should be import correctly in Python.
  2. You should be able to run the example simulation and see the graph provided in the documentation.

Optional

For more exploratory testing, run some more examples from the documentation:

  1. https://brian2.readthedocs.io/en/stable/examples/index.html

You should be able to download the sources (or write them while referring to the docs if you prefer), and then they should be runnable simply by using python3 <example file>.py in a terminal.