From ac4d25cd55478c10b7d7b52917c356e8f0d5fb2a Mon Sep 17 00:00:00 2001 From: Damon Bayer Date: Tue, 19 Nov 2024 13:13:30 -0600 Subject: [PATCH] add check to all subprocess commands (#143) --- pipelines/forecast_state.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pipelines/forecast_state.py b/pipelines/forecast_state.py index 21f365b1..f09f258f 100644 --- a/pipelines/forecast_state.py +++ b/pipelines/forecast_state.py @@ -29,7 +29,8 @@ def baseline_forecasts( f"{n_forecast_days}", "--n-samples", f"{n_samples}", - ] + ], + check=True, ) return None @@ -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 @@ -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 @@ -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