Skip to content

Commit df8f36e

Browse files
committed
enh: add make command to just update ED rows in CSV
1 parent d1014c5 commit df8f36e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,16 @@ check-socrata-updates:
170170
check-nssp-socrata-github-diff:
171171
Rscript -e "suppressPackageStartupMessages(source(here::here('R', 'load_all.R'))); check_nssp_socrata_github_diff()"
172172

173+
update-only-nssp-submission:
174+
@if [ -z "$$date" ]; then \
175+
echo "Usage: make update-only-nssp-submission date=2025-09-13"; \
176+
exit 1; \
177+
fi; \
178+
cd ../covid19-forecast-hub; \
179+
git pull --rebase --autostash origin main; \
180+
head -n 1 model-output/CMU-TimeSeries/$$date-CMU-TimeSeries.csv > temp1.csv; \
181+
git show HEAD:model-output/CMU-TimeSeries/$$date-CMU-TimeSeries.csv | grep "wk inc covid hosp" > temp2.csv; \
182+
cat model-output/CMU-TimeSeries/$$date-CMU-TimeSeries.csv | grep "wk inc covid prop ed visits" > temp3.csv; \
183+
cat temp1.csv temp2.csv temp3.csv > model-output/CMU-TimeSeries/$$date-CMU-TimeSeries.csv; \
184+
rm temp1.csv temp2.csv temp3.csv; \
185+
cd -

0 commit comments

Comments
 (0)