Skip to content

Commit

Permalink
check timestamp_column
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley M. Gifford <[email protected]>
  • Loading branch information
wgifford committed Mar 29, 2024
1 parent 67ff1b3 commit a008fb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tsfm_public/toolkit/time_series_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def __init__(
if not isinstance(id_columns, list):
raise ValueError(f"Invalid argument provided for `id_columns`: {id_columns}")

if isinstance(timestamp_column, list):
raise ValueError(f"`timestamp_column` should not be a list, received: {timestamp_column}")

self.id_columns = id_columns
self.timestamp_column = timestamp_column
self.target_columns = list(target_columns)
Expand Down

0 comments on commit a008fb3

Please sign in to comment.