Installation¶
The most straightforward way to use BasicSim is:
Clone the github repository at https://github.com/mattcraigie/BasicSim using your favourite IDE or using:
git clone https://github.com/mattcraigie/BasicSim
Activate your preferred python environment.
Navigate to the BasicSim toplevel directory and use:
pip install -r requirements.txt
Install FFMpeg on your machine (https://ffmpeg.org/)
You’re good to go! Create a script or run python interactively, and import the simulation module using
from simulation.pm import SimPM
SimPM('mysim.mp4')
You may also need to specify the FFMpeg install location by adding the lines
import matplotlib as mpl
mpl.rcParams['animation.ffmpeg_path'] = r'path\\to\\FFMpeg\\bin\\ffmpeg.exe'
before running any BasicSim functions.