From 720a5330739739ecbcb455a727a6cefb079a6fb9 Mon Sep 17 00:00:00 2001 From: Matthew McDermott Date: Mon, 27 May 2024 09:03:06 -0400 Subject: [PATCH] Update src/MEDS_tabular_automl/generate_summarized_reps.py Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- src/MEDS_tabular_automl/generate_summarized_reps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MEDS_tabular_automl/generate_summarized_reps.py b/src/MEDS_tabular_automl/generate_summarized_reps.py index 23db3dc..e0f8920 100644 --- a/src/MEDS_tabular_automl/generate_summarized_reps.py +++ b/src/MEDS_tabular_automl/generate_summarized_reps.py @@ -55,7 +55,7 @@ def get_agg_pl_expr(window_size: str, agg: str): case "value/max": value_cols.cummax().map_alias(time_aggd_col_alias_fntr(window_size, "max")) case _: - raise ValueError(f"Invalid aggregation `{agg}` for window_size `{window_size}`") + raise ValueError(f"Invalid aggregation '{agg}' provided for window_size '{window_size}'. Please choose from the valid options: {VALID_AGGREGATIONS}") else: match agg: case "code/count":