pyfabm-ersem
To build the python driver and use it with ERSEM, you must first obtain
copies of the FABM and ERSEM codes. The latest version of each can be
obtained by cloning their respective code repositories using
git. The instructions of how to do this are found
here.
To run the install script you will need to have wheel and numpy installed.
This can be done via:
1#!/bin/bash
2
3echo "Installing numpy and wheel"
4python -m pip install wheel numpy
To install PyFABM-ERSEM, we suggest you use the following script below
1#!/bin/bash
2BRANCH=${1:-master}
3
4echo "Cloning ERSEM"
5git clone https://github.com/pmlmodelling/ersem.git
6
7echo "Cloning FABM"
8git clone https://github.com/fabm-model/fabm.git
9
10echo "Checking out branch: $BRANCH"
11cd ersem && git checkout $BRANCH && cd ..
12
13echo "Moving ERSEM config files for pyFABM"
14cp github-actions/pyfabm-ersem/setup.cfg fabm
15
16echo "Building PyFABM-ERSEM"
17cd fabm
18python -m pip install .