pyoceans / pocean-core

🐍 + 🌊 A python framework for working with met-ocean data
https://pyoceans.github.io/pocean-core/
MIT License
22 stars 16 forks source link

~~Fix warnings~~ Fix numpy 2.0 failures #97

Closed ocefpaf closed 3 months ago

ocefpaf commented 3 months ago

Numpy no longer upcasts dtypes, we can:

  1. Let the original data be and upcast here in pocean, implemented in this PR;
  2. Error out and ask people to fix the data.

I prefer 1 but we can revert this change if other disagree,