Skip to content

Commit

Permalink
refactor(config): config_new is now config
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasrodes committed Feb 9, 2022
1 parent 2709ffe commit e0d62be
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 106 deletions.
104 changes: 57 additions & 47 deletions scripts/config.yaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,58 @@
global:
project_dir: !ENV ${OWID_COVID_PROJECT_DIR}
credentials: !ENV ${OWID_COVID_VAX_CREDENTIALS_FILE}
pipeline:
get-data:
parallel: True
countries:
njobs: -2
skip_countries:
- Andorra
- Gabon
- Morocco # Government data doesn't differentiate 1- and 2-dose vaccines so we use WHO instead
- North Macedonia
- South Africa
- africacdc
# - Faeroe Islands
process-data:
skip_complete:
- Pitcairn
skip_monotonic_check:
skip_anomaly_check:
Australia:
- date: 2021-05-23
metrics: people_vaccinated
Bahrain:
- date: 2021-03-06
metrics: total_vaccinations
Bolivia:
- date: 2021-03-06
metrics: people_vaccinated
Brazil:
- date: 2021-01-21
metrics:
- total_vaccinations
- people_vaccinated
Bulgaria:
- date: 2021-12-14
metrics: total_boosters
Luxembourg:
- date: 2021-11-29
metrics: people_fully_vaccinated
Nigeria:
- date: 2021-06-15
metrics: people_fully_vaccinated
United States:
- date: 2020-12-16
metrics: people_vaccinated
generate-dataset:

vaccinations:
get:
parallel: True
njobs: -2
countries:
skip_countries:
- Gabon
- Morocco # Government data doesn't differentiate 1- and 2-dose vaccines so we use WHO instead
- North Macedonia
- South Africa
- africacdc
# - Faeroe Islands
process:
skip_complete:
- Pitcairn
skip_monotonic_check:
skip_anomaly_check:
Australia:
- date: 2021-05-23
metrics: people_vaccinated
Bahrain:
- date: 2021-03-06
metrics: total_vaccinations
Bolivia:
- date: 2021-03-06
metrics: people_vaccinated
Brazil:
- date: 2021-01-21
metrics:
- total_vaccinations
- people_vaccinated
Bulgaria:
- date: 2021-12-14
metrics: total_boosters
Luxembourg:
- date: 2021-11-29
metrics: people_fully_vaccinated
Nigeria:
- date: 2021-06-15
metrics: people_fully_vaccinated
United States:
- date: 2020-12-16
metrics: people_vaccinated
generate:
export:

testing:
get:
parallel: True
njobs: -2
countries:
skip_countries:
- Benin #the source is n longer updating
process:
generate:
export:
58 changes: 0 additions & 58 deletions scripts/config_new.yaml

This file was deleted.

48 changes: 48 additions & 0 deletions scripts/config_old.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
global:
project_dir: !ENV ${OWID_COVID_PROJECT_DIR}
credentials: !ENV ${OWID_COVID_VAX_CREDENTIALS_FILE}
pipeline:
get-data:
parallel: True
countries:
njobs: -2
skip_countries:
- Andorra
- Gabon
- Morocco # Government data doesn't differentiate 1- and 2-dose vaccines so we use WHO instead
- North Macedonia
- South Africa
- africacdc
# - Faeroe Islands
process-data:
skip_complete:
- Pitcairn
skip_monotonic_check:
skip_anomaly_check:
Australia:
- date: 2021-05-23
metrics: people_vaccinated
Bahrain:
- date: 2021-03-06
metrics: total_vaccinations
Bolivia:
- date: 2021-03-06
metrics: people_vaccinated
Brazil:
- date: 2021-01-21
metrics:
- total_vaccinations
- people_vaccinated
Bulgaria:
- date: 2021-12-14
metrics: total_boosters
Luxembourg:
- date: 2021-11-29
metrics: people_fully_vaccinated
Nigeria:
- date: 2021-06-15
metrics: people_fully_vaccinated
United States:
- date: 2020-12-16
metrics: people_vaccinated
generate-dataset:
2 changes: 1 addition & 1 deletion scripts/src/cowidev/utils/params/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass
from pyaml_env import parse_config

from cowidev.utils.paths import CONFIG_FILE_NEW as CONFIG_FILE
from cowidev.utils.paths import CONFIG_FILE


config_raw = parse_config(CONFIG_FILE, raise_if_na=False)
Expand Down

0 comments on commit e0d62be

Please sign in to comment.