From Fedora Project Wiki
Description
This test case ensures that the Brian2 simulator functions correctly on install.
Setup
- Run a current Fedora release: even a virtual machine is OK.
- Install nest:
sudo dnf install python3-brian2
. - 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
- In a terminal, run the ipython3 interpreter:
ipython3
- Try to import the brian modules:
from brian2 import *
- Run an example simulation from the Brian2 documentation: https://brian2.readthedocs.io/en/stable/examples/IF_curve_LIF.html
Expected Results
- Brian2 should be import correctly in Python.
- 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:
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.