Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmims committed Sep 23, 2024
1 parent a179ace commit f1776a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,9 @@ def check_group_daterange(self, group_df: pd.DataFrame, case_dr,
end_times.append(tr[1])
group_df['start_time'] = pd.Series(start_times)
group_df['end_time'] = pd.Series(end_times)
else:
raise AttributeError('Data catalog is missing the attribute `time_range`;'
' this is a required entry.')
try:
start_time_vals = self.normalize_group_time_vals(group_df['start_time'].values.astype(str))
end_time_vals = self.normalize_group_time_vals(group_df['end_time'].values.astype(str))
Expand Down

0 comments on commit f1776a0

Please sign in to comment.