Skip to content

Commit

Permalink
Update src/MEDS_tabular_automl/generate_summarized_reps.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
mmcdermott and coderabbitai[bot] authored May 27, 2024
1 parent c8ca3bb commit 7fdc37d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MEDS_tabular_automl/generate_summarized_reps.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@


def time_aggd_col_alias_fntr(window_size: str, agg: str) -> Callable[[str], str]:
assert agg is not None, "agg must be provided"
if agg is None:
raise ValueError("Aggregation type 'agg' must be provided")

def f(c: str) -> str:
return "/".join([window_size] + c.split("/") + [agg])
Expand Down

0 comments on commit 7fdc37d

Please sign in to comment.