Open scottyhq opened 2 weeks ago
Looks like the tutorial code should just use named keywords instead of positional
np.nan_to_num(ds.sst, 0)
is actually intended to be np.nan_to_num(ds.sst, nan=0)
but according to the docstring order is actually setting copy=0
(copy=False
):
np.nan_to_num(x, copy=True, nan=0.0, posinf=None, neginf=None)
https://tutorial.xarray.dev/fundamentals/03.1_computation_with_xarray.html#applying-arbitrary-functions
Seen upgrading package versions (#270) if numpy>=2 in environment