Skip to content

Commit c1aecad

Browse files
committed
clean: update docs, add targets prune command
1 parent a559434 commit c1aecad

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

Makefile

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ prod-flu:
1919

2020
prod: prod-covid prod-flu update-site netlify
2121

22-
prod-backtest-covid:
22+
prod-covid-backtest:
2323
export BACKTEST_MODE=TRUE; export TAR_RUN_PROJECT=covid_hosp_prod; Rscript scripts/run.R
2424

25-
prod-backtest-flu:
25+
prod-flu-backtest:
2626
export BACKTEST_MODE=TRUE; export TAR_RUN_PROJECT=flu_hosp_prod; Rscript scripts/run.R
2727

28-
prod-backtest: prod-backtest-covid prod-backtest-flu
28+
prod-backtest: prod-covid-backtest prod-flu-backtest
2929

3030
explore-covid:
3131
export TAR_RUN_PROJECT=covid_hosp_explore; Rscript scripts/run.R
@@ -35,6 +35,20 @@ explore-flu:
3535

3636
explore: explore-covid explore-flu update-site netlify
3737

38+
prune: prune-covid-prod prune-flu-prod prune-covid-explore prune-flu-explore
39+
40+
prune-covid-prod:
41+
export TAR_PROJECT=covid_hosp_prod; export BACKTEST_MODE=TRUE; Rscript -e "targets::tar_prune()"
42+
43+
prune-flu-prod:
44+
export TAR_PROJECT=flu_hosp_prod; export BACKTEST_MODE=TRUE; Rscript -e "targets::tar_prune()"
45+
46+
prune-covid-explore:
47+
export TAR_PROJECT=covid_hosp_explore; Rscript -e "targets::tar_prune()"
48+
49+
prune-flu-explore:
50+
export TAR_PROJECT=flu_hosp_explore; Rscript -e "targets::tar_prune()"
51+
3852
commit-covid:
3953
cd ../covid19-forecast-hub; \
4054
git pull --rebase --autostash origin main; \
@@ -115,9 +129,11 @@ upload: push
115129
dashboard:
116130
Rscript scripts/dashboard.R
117131

118-
update-site:
132+
sync-reports:
119133
aws s3 sync s3://forecasting-team-data/2024/reports/ reports/; \
120-
aws s3 sync reports/ s3://forecasting-team-data/2024/reports/; \
134+
aws s3 sync reports/ s3://forecasting-team-data/2024/reports/
135+
136+
update-site: sync-reports
121137
Rscript -e "suppressPackageStartupMessages(source(here::here('R', 'load_all.R'))); update_site()" > cache/update_site_log.txt
122138

123139
netlify:

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ Run the pipeline using:
3737
# Install renv and R dependencies
3838
make install
3939

40-
# Pull various data used by the forecasters from the AWS bucket
40+
# Sync data and forecasts from the AWS bucket
41+
# - downloads the aux_data/ folder which contains non-public data used by some forecasters
42+
# - downloads previously generated forecasts, to save recomputing them
4143
# Requires the AWS CLI to be installed and configured
4244
# Reference: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/index.html
4345
# Installation instructions: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
@@ -61,7 +63,7 @@ make update_site && make netlify
6163
make submit-flu
6264
make submit-covid
6365

64-
# Push the data to the AWS bucket (requires AWS CLI)
66+
# Push your forecasts to the AWS bucket (requires AWS CLI)
6567
make push
6668
```
6769

0 commit comments

Comments
 (0)