- Notifications
You must be signed in to change notification settings - Fork0
Simple model example for the Python data pipeline api
License
FAIRDataPipeline/pySimpleModel
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A simple example of an SEIRS epidemiological model using theFAIR Data Pipeline.
- Create and activate new python 3 virtual environment.
pip install fair-cli.- Install a local registry:
- Install graphviz
fair registry install
- Clone this repository:
git clone https://github.com/FAIRDataPipeline/pySimpleModel.git. - Change directory
cd pySimpleModel. - Install this package
pip install .. - Initialise the registry
fair init
The user configuration script for running the python SEIRS model can be found inside this repo -simpleModel/ext/SEIRSconfig.yaml - and for this self-contained example, it includes all of the information to register the input data that the model needs, so that you don't have to be connected to a registry that already knows about it. The code can be executed by first ensuring that all of the input data is available in the local registry (usingfair pull) and then running the code (usingfair run). So:
fair pull simpleModel/ext/SEIRSconfig.yamlfair run simpleModel/ext/SEIRSconfig.yaml
- Ensure the local registry is started
fair registry start. - Visit the local registry in your browser (by default athttp://localhost:8000), you should see the input and output data recorded in the registry.
About
Simple model example for the Python data pipeline api
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.