From 68a2fa8e95503fc32710346f4c59f94ba484fd06 Mon Sep 17 00:00:00 2001 From: Nat DeFries <42820733+nmdefries@users.noreply.github.com> Date: Thu, 28 Oct 2021 13:43:02 -0400 Subject: [PATCH] produce CID lists first --- facebook/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/facebook/Makefile b/facebook/Makefile index 93305ed6c..b038f9c30 100644 --- a/facebook/Makefile +++ b/facebook/Makefile @@ -105,9 +105,14 @@ params.json: $(TODAY) end_date $(YESTERDAY) \ input <(find $(QUALTRICS) -maxdepth 1 -newer $< -type f -name "*.csv" | sort | grep $${PAT} | tr '\n' ',' | sed 's_$(QUALTRICS)/__g;s/,$$//' ) \ parallel true \ - output cids,individual,covidalert,archive,community \ + output cids \ start_date $(YESTERDAY) +update-params.json: params.json +$(PYTHON) -m delphi_utils set \ + output individual,covidalert,archive,community + + $(WEIGHTS): $(TODAY) [ -f $(WEIGHTS) ] || mkdir -p $(WEIGHTS) cd "$(WEIGHTS)"; \ @@ -140,7 +145,7 @@ run-R: $(CIDS) grep "scheduled core" tmp ; \ [ "$$?" -eq 1 ] -pipeline: scratch init-qualtrics params.json $(WEIGHTS) run-R post-cids post-individual post-individual-raceeth post-done tidy +pipeline: scratch init-qualtrics params.json $(WEIGHTS) run-R post-cids update-params.json run-R post-individual post-individual-raceeth post-done tidy grep $(TODAY) params.json [ -f $(YESTERDAY) ] && rm $(YESTERDAY) || true touch $@