Closed keewis closed 4 weeks ago
looks like numpy<2.1
didn't have cumulative_sum
, so we'll have to wait until xarray
supports numpy=2.1
(i.e. whenever we get around to releasing a new version).
We could probably merge all
, any
, min
, and max
into the main reduce
test, but I do like the clear separation that gives us (even though we duplicate the code twice).
Other than that, this should be ready for review, @TomNicholas
looks like that finally did it. So with that we only need to decide what to do about the code duplication (or if we can, as I would suggest, leave it as is), and this should be good to merge.
assuming that the code duplication is nothing urgent, I'm going to go ahead and merge
Sorry Justus! This looks great though.
This adds a few more reduction (or index reduction) tests, which should cover everything
xarray
supports and which is part of the array API.xarray
additionally provides sorting-based reductions likequantile
andmedian
, plusrank
which I don't quite understand.