Skip to content

FAIRDataPipeline/FortranSimpleModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FortranSimpleModel

Simple SEIRS model using the Fortran API for the FAIR data pipeline. This depends on the C/C++ API.

Installation

From the top-level directory:

$ cmake -Bbuild .
$ cmake --build build

Run locally

From the top level of the project:

$ ./build/bin/fortran_simple_model data/local_data.csv

The produced data will be located in the directory data_store.

Run using FAIR Data Pipeline

First, install the fair CLI.

$ pip install fair-cli

To set up the run, first start a local registry:

$ fair registry install
$ fair registry start

Note the location of the registry token reported here. If using default settings, this should be at /home/USERNAME/.fair/registry/token. Then, initialise the repository:

$ fair init [--local]

Finally, run the model using:

$ fair pull data/config.yaml
$ fair run data/config.yaml

If you don't have access to the remote server, a local run can be performed using:

$ fair pull --local data/config.yaml
$ fair run --local data/config.yaml

You can also run in a dirty git repo using:

$ fair run --dirty data/config.yaml
$ # Without remote server access:
$ fair run --local --dirty data/config.yaml

Releases

No releases published

Packages

No packages published