Skip to content

Commit

Permalink
nwm timeseries dismiss int
Browse files Browse the repository at this point in the history
  • Loading branch information
deronsmith committed Mar 13, 2024
1 parent 0e547c9 commit cc570a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions modules/hms/nwm_reanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ 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):
logger.warn(f"Invalid date encounters: {date}, catchment: {len(catchment)}, idx: {idx}")
continue
d = date[0].strftime('%Y-%m-%d %H')
if first:
self.output.data[d] = [r for r in row[vars]]
Expand Down
1 change: 0 additions & 1 deletion modules/hms/test-nwm-output.json

This file was deleted.

0 comments on commit cc570a7

Please sign in to comment.