Simple SEIRS model for C API for the FAIR data pipeline. The C API is a component of the C++ API.
From the top-level directory:
$ cmake -B build
$ cmake --build buildBuilding will be much faster if
cDataPipeline has been installed
on the user's system. Otherwise, cDataPipeline will be downloaded and built first.
$ ./build/cSimpleModel data/local_data.csv
$ # If the executable is not found here, try:
$ ./build/bin/cSimpleModel data/local_data.csvThe produced data can be found in a new directory called data_store.
First, install the fair CLI.
$ pip install fair-cliTo set up the run, first start a local registry:
$ fair registry install
$ fair registry startNote 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 initFinally, run the model using:
$ fair pull data/config.yaml
$ fair run data/config.yamlIf 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.yamlYou 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