Running Checks Locally - reichlab/covid19-forecast-hub GitHub Wiki
- Install Python3.x https://www.python.org/downloads/
- Clone the repository git clone https://github.com/reichlab/covid19-forecast-hub.git
- Add your files to
data-processed/<model_abbr> - Run these commands for one-time setup from the root of this repository.
sudo easy_install pip
pip3 install --upgrade setuptools
pip3 install -r visualization/requirements.txtValidate new forecast files added by running this command at the root of the repository.
python3 code/validation/test-formatting.py
The previous command just runs a test on all files that have not been checked previously by the CI. If you're updating a single forecast, it will not run checks on that. To force validate a check on a particular forecast file, run the following command:
python3 code/validation/validate_single_forecast_file.py <forecast>The <forecast> option should be a string. It can be specified with one of the following options:
-
model_abbr:- Specifying this for
<forecast>will run the forecast validation checks for all files with thatmodel_abbr. Example: SpecifyingCOVIDhub-ensemblewill run validations for all forecast files by theCOVIDhub-ensemblemodel.
- Specifying this for
- The path inside
data-processedfolder:- You can also specify a path to the forecast file within the
data-processedfolder. Example:data-processed/COVIDhub-ensemble/2020-04-13-COVIDhub-ensemble.csv. You can also omit the extension.
- You can also specify a path to the forecast file within the