Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhmorris committed Feb 13, 2025
1 parent 474d283 commit 94ebe3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pipelines/batch/setup_prod_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,13 @@ def main(
f"supported diseases are: {', '.join(supported_diseases)}"
)

signals = ["ed_visits", "hospital_admissions", "wastewater"]

for signal in signals:
fit = locals().get(f"fit_{signal}", False)
forecast = locals().get(f"forecast_{signal}", False)
if fit and not forecast:
ValueError(
raise ValueError(
"This pipeline does not currently support "
"fitting to but not forecasting a signal. "
f"Asked to fit but not forecast {signal}."
Expand Down
2 changes: 1 addition & 1 deletion pipelines/forecast_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def main(
fit = locals().get(f"fit_{signal}", False)
forecast = locals().get(f"forecast_{signal}", False)
if fit and not forecast:
ValueError(
raise ValueError(

Check warning on line 234 in pipelines/forecast_state.py

View check run for this annotation

Codecov / codecov/patch

pipelines/forecast_state.py#L230-L234

Added lines #L230 - L234 were not covered by tests
"This pipeline does not currently support "
"fitting to but not forecasting a signal. "
f"Asked to fit but not forecast {signal}."
Expand Down

0 comments on commit 94ebe3b

Please sign in to comment.