Skip to content

Commit

Permalink
Run build_cleaner on weatherbench2/scripts
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 625338806
  • Loading branch information
langmore authored and Weatherbench2 authors committed Apr 16, 2024
1 parent b2cc3d7 commit 0d0a4bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/resample_daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def main(argv: abc.Sequence[str]) -> None:
orig_times.min() - np.timedelta64(rolling_window - 1, 'D'),
orig_times.max() - np.timedelta64(rolling_window - 2, 'D'),
dtype='datetime64[D]',
)
).astype('datetime64[ns]')
elif METHOD.value == 'resample':
if PERIOD.value[-1] == 'w':
raise NotImplementedError(
Expand All @@ -181,7 +181,7 @@ def main(argv: abc.Sequence[str]) -> None:
orig_times.min(),
orig_times.max() + np.timedelta64(1, 'D'),
dtype='datetime64[D]',
)
).astype('datetime64[ns]')
else:
raise ValueError(f'Method {METHOD.value} not supported.')

Expand Down

0 comments on commit 0d0a4bc

Please sign in to comment.