Skip to content

Commit

Permalink
Use signed int64 in hindcast conversion: works with numpy 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo committed Dec 2, 2024
1 parent 39f34e3 commit e4ca02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iris_grib/_load_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class HindcastOverflowWarning(Warning):
# Non-standardised usage for negative forecast times.
def _hindcast_fix(forecast_time):
"""Return a forecast time interpreted as a possibly negative value."""
uft = np.array(forecast_time).astype(np.uint32)
uft = np.array(forecast_time).astype(np.int64)
HIGHBIT = 2**30

# Workaround grib api's assumption that forecast time is positive.
Expand Down

0 comments on commit e4ca02a

Please sign in to comment.