Skip to content

Commit

Permalink
add check to all subprocess commands (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
damonbayer committed Nov 19, 2024
1 parent 915284e commit ac4d25c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pipelines/forecast_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def baseline_forecasts(
f"{n_forecast_days}",
"--n-samples",
f"{n_samples}",
]
],
check=True,
)
return None

Expand All @@ -40,7 +41,8 @@ def convert_inferencedata_to_parquet(model_run_dir: Path) -> None:
"Rscript",
"pipelines/convert_inferencedata_to_parquet.R",
f"{model_run_dir}",
]
],
check=True,
)
return None

Expand All @@ -51,7 +53,8 @@ def postprocess_forecast(model_run_dir: Path) -> None:
"Rscript",
"pipelines/postprocess_state_forecast.R",
f"{model_run_dir}",
]
],
check=True,
)
return None

Expand All @@ -62,7 +65,8 @@ def score_forecast(model_run_dir: Path) -> None:
"Rscript",
"pipelines/score_forecast.R",
f"{model_run_dir}",
]
],
check=True,
)
return None

Expand Down

0 comments on commit ac4d25c

Please sign in to comment.