Skip to content

Commit

Permalink
added index to nwm type check
Browse files Browse the repository at this point in the history
  • Loading branch information
deronsmith committed Mar 13, 2024
1 parent cc570a7 commit cb95146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hms/nwm_reanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def set_output(self, return_dataframe: bool=False):
for idx, catchment in timeseries.groupby("feature_id"):
i_meta = True
for date, row in catchment.iterrows():
if isinstance(date, int):
if isinstance(date[0], int):
logger.warn(f"Invalid date encounters: {date}, catchment: {len(catchment)}, idx: {idx}")
continue
d = date[0].strftime('%Y-%m-%d %H')
Expand Down

0 comments on commit cb95146

Please sign in to comment.