Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use numbagg for rolling methods #8493

Merged
merged 13 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 75 additions & 7 deletions xarray/core/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from xarray.core.options import OPTIONS, _get_keep_attrs
from xarray.core.pycompat import is_duck_dask_array
from xarray.core.types import CoarsenBoundaryOptions, SideOptions, T_Xarray
from xarray.core.utils import either_dict_or_kwargs
from xarray.core.utils import either_dict_or_kwargs, module_available

try:
import bottleneck
Expand Down Expand Up @@ -153,14 +153,21 @@ def _reduce_method( # type: ignore[misc]
array_agg_func = getattr(duck_array_ops, name)

bottleneck_move_func = getattr(bottleneck, "move_" + name, None)
if module_available("numbagg"):
import numbagg

numbagg_move_func = getattr(numbagg, "move_" + name, None)
else:
numbagg_move_func = None

def method(self, keep_attrs=None, **kwargs):
keep_attrs = self._get_keep_attrs(keep_attrs)

return self._numpy_or_bottleneck_reduce(
max-sixty marked this conversation as resolved.
Show resolved Hide resolved
array_agg_func,
bottleneck_move_func,
rolling_agg_func,
array_agg_func=array_agg_func,
bottleneck_move_func=bottleneck_move_func,
numbagg_move_func=numbagg_move_func,
rolling_agg_func=rolling_agg_func,
keep_attrs=keep_attrs,
fillna=fillna,
**kwargs,
Expand Down Expand Up @@ -510,9 +517,47 @@ def _counts(self, keep_attrs: bool | None) -> DataArray:
)
return counts

def _bottleneck_reduce(self, func, keep_attrs, **kwargs):
from xarray.core.dataarray import DataArray
def _numbagg_reduce(self, func, keep_attrs, **kwargs):
# Some of this is copied from `_bottleneck_reduce`, we could reduce this as part
# of a wider refactor.

axis = self.obj.get_axis_num(self.dim[0])

padded = self.obj.variable
if self.center[0]:
if is_duck_dask_array(padded.data):
# workaround to make the padded chunk size larger than
# self.window - 1
shift = -(self.window[0] + 1) // 2
offset = (self.window[0] - 1) // 2
valid = (slice(None),) * axis + (
slice(offset, offset + self.obj.shape[axis]),
)
else:
shift = (-self.window[0] // 2) + 1
valid = (slice(None),) * axis + (slice(-shift, None),)
padded = padded.pad({self.dim[0]: (0, -shift)}, mode="constant")

if is_duck_dask_array(padded.data):
raise AssertionError("should not be reachable")
else:
values = func(
padded.data,
window=self.window[0],
min_count=self.min_periods,
axis=axis,
)

if self.center[0]:
values = values[valid]

attrs = self.obj.attrs if keep_attrs else {}

return self.obj.__class__(
values, self.obj.coords, attrs=attrs, name=self.obj.name
)

def _bottleneck_reduce(self, func, keep_attrs, **kwargs):
# bottleneck doesn't allow min_count to be 0, although it should
# work the same as if min_count = 1
# Note bottleneck only works with 1d-rolling.
Expand Down Expand Up @@ -550,12 +595,15 @@ def _bottleneck_reduce(self, func, keep_attrs, **kwargs):

attrs = self.obj.attrs if keep_attrs else {}

return DataArray(values, self.obj.coords, attrs=attrs, name=self.obj.name)
return self.obj.__class__(
values, self.obj.coords, attrs=attrs, name=self.obj.name
)

def _numpy_or_bottleneck_reduce(
self,
array_agg_func,
bottleneck_move_func,
numbagg_move_func,
rolling_agg_func,
keep_attrs,
fillna,
Expand All @@ -571,6 +619,26 @@ def _numpy_or_bottleneck_reduce(
)
del kwargs["dim"]

if (
OPTIONS["use_numbagg"]
and numbagg_move_func is not None
# TODO: can we allow this with numbagg?
and not is_duck_dask_array(self.obj.data)
and self.obj.data.dtype.kind not in "Ob"
):
import numbagg

# Numbagg has a default ddof of 1. I (@max-sixty) think we should make
# this the default in xarray too, but until we do, don't use numbagg for
# std and var unless ddof is set to 1.
if (
numbagg_move_func not in [numbagg.move_std, numbagg.move_var]
or kwargs.get("ddof") == 1
):
return self._numbagg_reduce(
numbagg_move_func, keep_attrs=keep_attrs, **kwargs
)

if (
OPTIONS["use_bottleneck"]
and bottleneck_move_func is not None
Expand Down
51 changes: 29 additions & 22 deletions xarray/tests/test_rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
@pytest.mark.parametrize("size", [1, 2, 3, 7])
def test_rolling_iter(self, da: DataArray, center: bool, size: int) -> None:
rolling_obj = da.rolling(time=size, center=center)
rolling_obj_mean = rolling_obj.mean()

Check failure on line 33 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9 min-all-deps

TestDataArrayRolling.test_rolling_iter[numpy-1-True-1] AttributeError: module 'numbagg' has no attribute 'move_std'

Check failure on line 33 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9 min-all-deps

TestDataArrayRolling.test_rolling_iter[numpy-1-True-2] AttributeError: module 'numbagg' has no attribute 'move_std'

Check failure on line 33 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9 min-all-deps

TestDataArrayRolling.test_rolling_iter[numpy-1-False-1] AttributeError: module 'numbagg' has no attribute 'move_std'

Check failure on line 33 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9 min-all-deps

TestDataArrayRolling.test_rolling_iter[numpy-1-False-2] AttributeError: module 'numbagg' has no attribute 'move_std'

Check failure on line 33 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9 min-all-deps

TestDataArrayRolling.test_rolling_iter[numpy-2-True-1] AttributeError: module 'numbagg' has no attribute 'move_std'

Check failure on line 33 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9 min-all-deps

TestDataArrayRolling.test_rolling_iter[numpy-2-True-2] AttributeError: module 'numbagg' has no attribute 'move_std'

Check failure on line 33 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9 min-all-deps

TestDataArrayRolling.test_rolling_iter[numpy-2-False-1] AttributeError: module 'numbagg' has no attribute 'move_std'

Check failure on line 33 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9 min-all-deps

TestDataArrayRolling.test_rolling_iter[numpy-2-False-2] AttributeError: module 'numbagg' has no attribute 'move_std'

Check failure on line 33 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9 min-all-deps

TestDataArrayRolling.test_rolling_iter[numpy-3-True-1] AttributeError: module 'numbagg' has no attribute 'move_std'

assert len(rolling_obj.window_labels) == len(da["time"])
assert_identical(rolling_obj.window_labels, da["time"])
Expand Down Expand Up @@ -98,7 +98,9 @@
expected = getattr(bn, func_name)(
da.values, window=7, axis=1, min_count=min_periods
)
assert_array_equal(actual.values, expected)

# Using assert_allclose because we get tiny (1e-17) differences in numbagg.
np.testing.assert_allclose(actual.values, expected)

with pytest.warns(DeprecationWarning, match="Reductions are applied"):
getattr(rolling_obj, name)(dim="time")
Expand Down Expand Up @@ -280,28 +282,33 @@
@pytest.mark.parametrize("min_periods", (None, 1))
@pytest.mark.parametrize("name", ("sum", "mean", "max"))
def test_ndrolling_reduce(self, da, center, min_periods, name) -> None:
rolling_obj = da.rolling(time=3, x=2, center=center, min_periods=min_periods)

actual = getattr(rolling_obj, name)()
expected = getattr(
getattr(
da.rolling(time=3, center=center, min_periods=min_periods), name
)().rolling(x=2, center=center, min_periods=min_periods),
name,
)()

assert_allclose(actual, expected)
assert actual.dims == expected.dims

if name in ["mean"]:
# test our reimplementation of nanmean using np.nanmean
expected = getattr(rolling_obj.construct({"time": "tw", "x": "xw"}), name)(
["tw", "xw"]
# FIXME
# with xr.set_options(use_numbagg=False):
if True:
rolling_obj = da.rolling(
time=3, x=2, center=center, min_periods=min_periods
)
count = rolling_obj.count()
if min_periods is None:
min_periods = 1
assert_allclose(actual, expected.where(count >= min_periods))

actual = getattr(rolling_obj, name)()
expected = getattr(
getattr(
da.rolling(time=3, center=center, min_periods=min_periods), name
)().rolling(x=2, center=center, min_periods=min_periods),
name,
)()

assert_allclose(actual, expected)

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-None-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, 3.680656, 3.576601, 3.797627], ..., [ nan, 2.716856, 2.238856, 1.949939], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 3.185359, 3.042236, 2.075765], ..., [ nan, 4.358716, 3.0194 , 2.43648 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 2.393572, 3.137381, 2.32925 ], ..., [ nan, 2.727211, 2.440061, 2.694193], [ nan, nan, nan, nan]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-None-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 2.918653, 2.833004, 2.63843 ], [ nan, 2.716856, 2.238856, 1.949939]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 3.305444, 2.891262, 3.036616], [ nan, 4.358716, 3.0194 , 2.43648 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 2.932052, 2.337596, 2.262561], [ nan, 2.727211, 2.440061, 2.694193]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-1-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.972468, 1.361083, 1.040351, 1.436656], [1.936131, 1.744525, 1.832076, 1.965551], ..., [1.577551, 1.139305, 1.099551, 0.850388], [0.60079 , 0.53446 , 0.360288, 0.8112 ]], [[1.142548, 1.194686, 0.841817, 0.761351], [1.274346, 1.911013, 1.131223, 0.944542], ..., [2.480269, 1.878447, 1.140953, 1.295527], [1.67295 , 1.309346, 0.73377 , 1.22636 ]], [[0.929987, 0.190151, 1.314734, 0.278263], [1.275339, 1.118233, 2.019149, 0.310102], ..., [1.725563, 1.001648, 1.438413, 1.25578 ], [0.861707, 0.884116, 0.921034, 1.123712]]]) R array([[[0.972468, 2.333552, 2.401434, 2.477007], [1.936131, 3.680656, 3.576601, 3.797627], ..., [1.577551, 2.716856, 2.238856, 1.949939], [0.60079 , 1.13525 , 0.894747, 1.171488]], [[1.142548, 2.337234, 2.036503, 1.603168], [1.274346, 3.185359, 3.042236, 2.075765], ..., [2.480269, 4.358716, 3.0194 , 2.43648 ], [1.67295 , 2.982296, 2.043116, 1.96013 ]], [[0.929987, 1.120139, 1.504886, 1.592997], [1.275339, 2.393572, 3.137381, 2.32925 ], ..., [1.725563, 2.727211, 2.440061, 2.694193], [0.861707, 1.745823, 1.80515 , 2.044746]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-1-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.548814, 0.715189, 0.602763, 0.544883], [0.972468, 1.361083, 1.040351, 1.436656], ..., [2.097513, 0.82114 , 2.011863, 0.626567], [1.577551, 1.139305, 1.099551, 0.850388]], [[0.566601, 0.265389, 0.523248, 0.093941], [1.142548, 1.194686, 0.841817, 0.761351], ..., [1.667241, 1.638203, 1.253059, 1.783558], [2.480269, 1.878447, 1.140953, 1.295527]], [[0.729991, 0.17163 , 0.521037, 0.054338], [0.929987, 0.190151, 1.314734, 0.278263], ..., [1.954885, 0.977167, 1.360429, 0.902132], [1.725563, 1.001648, 1.438413, 1.25578 ]]]) R array([[[0.548814, 1.264003, 1.317953, 1.147647], [0.972468, 2.333552, 2.401434, 2.477007], ..., [2.097513, 2.918653, 2.833004, 2.63843 ], [1.577551, 2.716856, 2.238856, 1.949939]], [[0.566601, 0.831991, 0.788638, 0.617189], [1.142548, 2.337234, 2.036503, 1.603168], ..., [1.667241, 3.305444, 2.891262, 3.036616], [2.480269, 4.358716, 3.0194 , 2.43648 ]], [[0.729991, 0.90162 , 0.692666, 0.575375], [0.929987, 1.120139, 1.504886, 1.592997], ..., [1.954885, 2.932052, 2.337596, 2.262561], [1.725563, 2.727211, 2.440061, 2.694193]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-None-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, 0.613443, 0.5961 , 0.632938], ..., [ nan, 0.452809, 0.373143, 0.32499 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 0.530893, 0.507039, 0.345961], ..., [ nan, 0.726453, 0.503233, 0.40608 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 0.398929, 0.522897, 0.388208], ..., [ nan, 0.454535, 0.406677, 0.449032], [ nan, nan, nan, nan]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-None-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.486442, 0.472167, 0.439738], [ nan, 0.452809, 0.373143, 0.32499 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.550907, 0.481877, 0.506103], [ nan, 0.726453, 0.503233, 0.40608 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.488675, 0.389599, 0.377094], [ nan, 0.454535, 0.406677, 0.449032]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-1-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.486234, 0.680542, 0.520175, 0.718328], [0.645377, 0.581508, 0.610692, 0.655184], ..., [0.52585 , 0.379768, 0.366517, 0.283463], [0.300395, 0.26723 , 0.180144, 0.4056 ]], [[0.571274, 0.597343, 0.420909, 0.380675], [0.424782, 0.637004, 0.377074, 0.314847], ..., [0.826756, 0.626149, 0.380318, 0.431842], [0.836475, 0.654673, 0.366885, 0.61318 ]], [[0.464994, 0.095076, 0.657367, 0.139131], [0.425113, 0.372744, 0.67305 , 0.103367], ..., [0.575188, 0.333883, 0.479471, 0.418593], [0.430854, 0.442058, 0.460517, 0.561856]]]) R array([[[0.486234, 0.583388, 0.600359, 0.619252], [0.645377, 0.613443, 0.5961 , 0.632938], ..., [0.52585 , 0.452809, 0.373143, 0.32499 ], [0.300395, 0.283812, 0.223687, 0.292872]], [[0.571274, 0.584308, 0.509126, 0.400792], [0.424782, 0.530893, 0.507039, 0.345961], ..., [0.826756, 0.726453, 0.503233, 0.40608 ], [0.836475, 0.745574, 0.510779, 0.490033]], [[0.464994, 0.280035, 0.376221, 0.398249], [0.425113, 0.398929, 0.522897, 0.388208], ..., [0.575188, 0.454535, 0.406677, 0.449032], [0.430854, 0.436456, 0.451288, 0.511186]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-1-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.548814, 0.715189, 0.602763, 0.544883], [0.486234, 0.680542, 0.520175, 0.718328], ..., [0.699171, 0.273713, 0.670621, 0.208856], [0.52585 , 0.379768, 0.366517, 0.283463]], [[0.566601, 0.265389, 0.523248, 0.093941], [0.571274, 0.597343, 0.420909, 0.380675], ..., [0.555747, 0.546068, 0.417686, 0.594519], [0.826756, 0.626149, 0.380318, 0.431842]], [[0.729991, 0.17163 , 0.521037, 0.054338], [0.464994, 0.095076, 0.657367, 0.139131], ..., [0.651628, 0.325722, 0.453476, 0.300711], [0.575188, 0.333883, 0.479471, 0.418593]]]) R array([[[0.548814, 0.632001, 0.658976, 0.573823], [0.486234, 0.583388, 0.600359, 0.619252], ..., [0.699171, 0.486442, 0.472167, 0.439738], [0.52585 , 0.452809, 0.373143, 0.32499 ]], [[0.566601, 0.415995, 0.394319, 0.308594], [0.571274, 0.584308, 0.509126, 0.400792], ..., [0.555747, 0.550907, 0.481877, 0.506103], [0.826756, 0.726453, 0.503233, 0.40608 ]], [[0.729991, 0.45081 , 0.346333, 0.287687], [0.464994, 0.280035, 0.376221, 0.398249], ..., [0.651628, 0.488675, 0.389599, 0.377094], [0.575188, 0.454535, 0.406677, 0.449032]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-None-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, 3.680656, 3.576601, 3.797627], ..., [ nan, 2.716856, 2.238856, 1.949939], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 3.185359, 3.042236, 2.075765], ..., [ nan, 4.358716, 3.0194 , 2.43648 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 2.393572, 3.137381, 2.32925 ], ..., [ nan, 2.727211, 2.440061, 2.694193], [ nan, nan, nan, nan]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-None-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 2.918653, 2.833004, 2.63843 ], [ nan, 2.716856, 2.238856, 1.949939]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 3.305444, 2.891262, 3.036616], [ nan, 4.358716, 3.0194 , 2.43648 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 2.932052, 2.337596, 2.262561], [ nan, 2.727211, 2.440061, 2.694193]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-1-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.972468, 1.361083, 1.040351, 1.436656], [1.936131, 1.744525, 1.832076, 1.965551], ..., [1.577551, 1.139305, 1.099551, 0.850388], [0.60079 , 0.53446 , 0.360288, 0.8112 ]], [[1.142548, 1.194686, 0.841817, 0.761351], [1.274346, 1.911013, 1.131223, 0.944542], ..., [2.480269, 1.878447, 1.140953, 1.295527], [1.67295 , 1.309346, 0.73377 , 1.22636 ]], [[0.929987, 0.190151, 1.314734, 0.278263], [1.275339, 1.118233, 2.019149, 0.310102], ..., [1.725563, 1.001648, 1.438413, 1.25578 ], [0.861707, 0.884116, 0.921034, 1.123712]]]) R array([[[0.972468, 2.333552, 2.401434, 2.477007], [1.936131, 3.680656, 3.576601, 3.797627], ..., [1.577551, 2.716856, 2.238856, 1.949939], [0.60079 , 1.13525 , 0.894747, 1.171488]], [[1.142548, 2.337234, 2.036503, 1.603168], [1.274346, 3.185359, 3.042236, 2.075765], ..., [2.480269, 4.358716, 3.0194 , 2.43648 ], [1.67295 , 2.982296, 2.043116, 1.96013 ]], [[0.929987, 1.120139, 1.504886, 1.592997], [1.275339, 2.393572, 3.137381, 2.32925 ], ..., [1.725563, 2.727211, 2.440061, 2.694193], [0.861707, 1.745823, 1.80515 , 2.044746]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-1-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.548814, 0.715189, 0.602763, 0.544883], [0.972468, 1.361083, 1.040351, 1.436656], ..., [2.097513, 0.82114 , 2.011863, 0.626567], [1.577551, 1.139305, 1.099551, 0.850388]], [[0.566601, 0.265389, 0.523248, 0.093941], [1.142548, 1.194686, 0.841817, 0.761351], ..., [1.667241, 1.638203, 1.253059, 1.783558], [2.480269, 1.878447, 1.140953, 1.295527]], [[0.729991, 0.17163 , 0.521037, 0.054338], [0.929987, 0.190151, 1.314734, 0.278263], ..., [1.954885, 0.977167, 1.360429, 0.902132], [1.725563, 1.001648, 1.438413, 1.25578 ]]]) R array([[[0.548814, 1.264003, 1.317953, 1.147647], [0.972468, 2.333552, 2.401434, 2.477007], ..., [2.097513, 2.918653, 2.833004, 2.63843 ], [1.577551, 2.716856, 2.238856, 1.949939]], [[0.566601, 0.831991, 0.788638, 0.617189], [1.142548, 2.337234, 2.036503, 1.603168], ..., [1.667241, 3.305444, 2.891262, 3.036616], [2.480269, 4.358716, 3.0194 , 2.43648 ]], [[0.729991, 0.90162 , 0.692666, 0.575375], [0.929987, 1.120139, 1.504886, 1.592997], ..., [1.954885, 2.932052, 2.337596, 2.262561], [1.725563, 2.727211, 2.440061, 2.694193]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-None-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, 0.613443, 0.5961 , 0.632938], ..., [ nan, 0.452809, 0.373143, 0.32499 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 0.530893, 0.507039, 0.345961], ..., [ nan, 0.726453, 0.503233, 0.40608 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 0.398929, 0.522897, 0.388208], ..., [ nan, 0.454535, 0.406677, 0.449032], [ nan, nan, nan, nan]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-None-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.486442, 0.472167, 0.439738], [ nan, 0.452809, 0.373143, 0.32499 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.550907, 0.481877, 0.506103], [ nan, 0.726453, 0.503233, 0.40608 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.488675, 0.389599, 0.377094], [ nan, 0.454535, 0.406677, 0.449032]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-1-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.486234, 0.680542, 0.520175, 0.718328], [0.645377, 0.581508, 0.610692, 0.655184], ..., [0.52585 , 0.379768, 0.366517, 0.283463], [0.300395, 0.26723 , 0.180144, 0.4056 ]], [[0.571274, 0.597343, 0.420909, 0.380675], [0.424782, 0.637004, 0.377074, 0.314847], ..., [0.826756, 0.626149, 0.380318, 0.431842], [0.836475, 0.654673, 0.366885, 0.61318 ]], [[0.464994, 0.095076, 0.657367, 0.139131], [0.425113, 0.372744, 0.67305 , 0.103367], ..., [0.575188, 0.333883, 0.479471, 0.418593], [0.430854, 0.442058, 0.460517, 0.561856]]]) R array([[[0.486234, 0.583388, 0.600359, 0.619252], [0.645377, 0.613443, 0.5961 , 0.632938], ..., [0.52585 , 0.452809, 0.373143, 0.32499 ], [0.300395, 0.283812, 0.223687, 0.292872]], [[0.571274, 0.584308, 0.509126, 0.400792], [0.424782, 0.530893, 0.507039, 0.345961], ..., [0.826756, 0.726453, 0.503233, 0.40608 ], [0.836475, 0.745574, 0.510779, 0.490033]], [[0.464994, 0.280035, 0.376221, 0.398249], [0.425113, 0.398929, 0.522897, 0.388208], ..., [0.575188, 0.454535, 0.406677, 0.449032], [0.430854, 0.436456, 0.451288, 0.511186]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-1-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.548814, 0.715189, 0.602763, 0.544883], [0.486234, 0.680542, 0.520175, 0.718328], ..., [0.699171, 0.273713, 0.670621, 0.208856], [0.52585 , 0.379768, 0.366517, 0.283463]], [[0.566601, 0.265389, 0.523248, 0.093941], [0.571274, 0.597343, 0.420909, 0.380675], ..., [0.555747, 0.546068, 0.417686, 0.594519], [0.826756, 0.626149, 0.380318, 0.431842]], [[0.729991, 0.17163 , 0.521037, 0.054338], [0.464994, 0.095076, 0.657367, 0.139131], ..., [0.651628, 0.325722, 0.453476, 0.300711], [0.575188, 0.333883, 0.479471, 0.418593]]]) R array([[[0.548814, 0.632001, 0.658976, 0.573823], [0.486234, 0.583388, 0.600359, 0.619252], ..., [0.699171, 0.486442, 0.472167, 0.439738], [0.52585 , 0.452809, 0.373143, 0.32499 ]], [[0.566601, 0.415995, 0.394319, 0.308594], [0.571274, 0.584308, 0.509126, 0.400792], ..., [0.555747, 0.550907, 0.481877, 0.506103], [0.826756, 0.726453, 0.503233, 0.40608 ]], [[0.729991, 0.45081 , 0.346333, 0.287687], [0.464994, 0.280035, 0.376221, 0.398249], ..., [0.651628, 0.488675, 0.389599, 0.377094], [0.575188, 0.454535, 0.406677, 0.449032]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-None-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, 3.680656, 3.576601, 3.797627], ..., [ nan, 2.716856, 2.238856, 1.949939], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 3.185359, 3.042236, 2.075765], ..., [ nan, 4.358716, 3.0194 , 2.43648 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 2.393572, 3.137381, 2.32925 ], ..., [ nan, 2.727211, 2.440061, 2.694193], [ nan, nan, nan, nan]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-None-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 2.918653, 2.833004, 2.63843 ], [ nan, 2.716856, 2.238856, 1.949939]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 3.305444, 2.891262, 3.036616], [ nan, 4.358716, 3.0194 , 2.43648 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 2.932052, 2.337596, 2.262561], [ nan, 2.727211, 2.440061, 2.694193]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-1-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.972468, 1.361083, 1.040351, 1.436656], [1.936131, 1.744525, 1.832076, 1.965551], ..., [1.577551, 1.139305, 1.099551, 0.850388], [0.60079 , 0.53446 , 0.360288, 0.8112 ]], [[1.142548, 1.194686, 0.841817, 0.761351], [1.274346, 1.911013, 1.131223, 0.944542], ..., [2.480269, 1.878447, 1.140953, 1.295527], [1.67295 , 1.309346, 0.73377 , 1.22636 ]], [[0.929987, 0.190151, 1.314734, 0.278263], [1.275339, 1.118233, 2.019149, 0.310102], ..., [1.725563, 1.001648, 1.438413, 1.25578 ], [0.861707, 0.884116, 0.921034, 1.123712]]]) R array([[[0.972468, 2.333552, 2.401434, 2.477007], [1.936131, 3.680656, 3.576601, 3.797627], ..., [1.577551, 2.716856, 2.238856, 1.949939], [0.60079 , 1.13525 , 0.894747, 1.171488]], [[1.142548, 2.337234, 2.036503, 1.603168], [1.274346, 3.185359, 3.042236, 2.075765], ..., [2.480269, 4.358716, 3.0194 , 2.43648 ], [1.67295 , 2.982296, 2.043116, 1.96013 ]], [[0.929987, 1.120139, 1.504886, 1.592997], [1.275339, 2.393572, 3.137381, 2.32925 ], ..., [1.725563, 2.727211, 2.440061, 2.694193], [0.861707, 1.745823, 1.80515 , 2.044746]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-1-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.548814, 0.715189, 0.602763, 0.544883], [0.972468, 1.361083, 1.040351, 1.436656], ..., [2.097513, 0.82114 , 2.011863, 0.626567], [1.577551, 1.139305, 1.099551, 0.850388]], [[0.566601, 0.265389, 0.523248, 0.093941], [1.142548, 1.194686, 0.841817, 0.761351], ..., [1.667241, 1.638203, 1.253059, 1.783558], [2.480269, 1.878447, 1.140953, 1.295527]], [[0.729991, 0.17163 , 0.521037, 0.054338], [0.929987, 0.190151, 1.314734, 0.278263], ..., [1.954885, 0.977167, 1.360429, 0.902132], [1.725563, 1.001648, 1.438413, 1.25578 ]]]) R array([[[0.548814, 1.264003, 1.317953, 1.147647], [0.972468, 2.333552, 2.401434, 2.477007], ..., [2.097513, 2.918653, 2.833004, 2.63843 ], [1.577551, 2.716856, 2.238856, 1.949939]], [[0.566601, 0.831991, 0.788638, 0.617189], [1.142548, 2.337234, 2.036503, 1.603168], ..., [1.667241, 3.305444, 2.891262, 3.036616], [2.480269, 4.358716, 3.0194 , 2.43648 ]], [[0.729991, 0.90162 , 0.692666, 0.575375], [0.929987, 1.120139, 1.504886, 1.592997], ..., [1.954885, 2.932052, 2.337596, 2.262561], [1.725563, 2.727211, 2.440061, 2.694193]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-None-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, 0.613443, 0.5961 , 0.632938], ..., [ nan, 0.452809, 0.373143, 0.32499 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 0.530893, 0.507039, 0.345961], ..., [ nan, 0.726453, 0.503233, 0.40608 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 0.398929, 0.522897, 0.388208], ..., [ nan, 0.454535, 0.406677, 0.449032], [ nan, nan, nan, nan]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-None-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.486442, 0.472167, 0.439738], [ nan, 0.452809, 0.373143, 0.32499 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.550907, 0.481877, 0.506103], [ nan, 0.726453, 0.503233, 0.40608 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.488675, 0.389599, 0.377094], [ nan, 0.454535, 0.406677, 0.449032]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-1-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.486234, 0.680542, 0.520175, 0.718328], [0.645377, 0.581508, 0.610692, 0.655184], ..., [0.52585 , 0.379768, 0.366517, 0.283463], [0.300395, 0.26723 , 0.180144, 0.4056 ]], [[0.571274, 0.597343, 0.420909, 0.380675], [0.424782, 0.637004, 0.377074, 0.314847], ..., [0.826756, 0.626149, 0.380318, 0.431842], [0.836475, 0.654673, 0.366885, 0.61318 ]], [[0.464994, 0.095076, 0.657367, 0.139131], [0.425113, 0.372744, 0.67305 , 0.103367], ..., [0.575188, 0.333883, 0.479471, 0.418593], [0.430854, 0.442058, 0.460517, 0.561856]]]) R array([[[0.486234, 0.583388, 0.600359, 0.619252], [0.645377, 0.613443, 0.5961 , 0.632938], ..., [0.52585 , 0.452809, 0.373143, 0.32499 ], [0.300395, 0.283812, 0.223687, 0.292872]], [[0.571274, 0.584308, 0.509126, 0.400792], [0.424782, 0.530893, 0.507039, 0.345961], ..., [0.826756, 0.726453, 0.503233, 0.40608 ], [0.836475, 0.745574, 0.510779, 0.490033]], [[0.464994, 0.280035, 0.376221, 0.398249], [0.425113, 0.398929, 0.522897, 0.388208], ..., [0.575188, 0.454535, 0.406677, 0.449032], [0.430854, 0.436456, 0.451288, 0.511186]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.9

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-1-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.548814, 0.715189, 0.602763, 0.544883], [0.486234, 0.680542, 0.520175, 0.718328], ..., [0.699171, 0.273713, 0.670621, 0.208856], [0.52585 , 0.379768, 0.366517, 0.283463]], [[0.566601, 0.265389, 0.523248, 0.093941], [0.571274, 0.597343, 0.420909, 0.380675], ..., [0.555747, 0.546068, 0.417686, 0.594519], [0.826756, 0.626149, 0.380318, 0.431842]], [[0.729991, 0.17163 , 0.521037, 0.054338], [0.464994, 0.095076, 0.657367, 0.139131], ..., [0.651628, 0.325722, 0.453476, 0.300711], [0.575188, 0.333883, 0.479471, 0.418593]]]) R array([[[0.548814, 0.632001, 0.658976, 0.573823], [0.486234, 0.583388, 0.600359, 0.619252], ..., [0.699171, 0.486442, 0.472167, 0.439738], [0.52585 , 0.452809, 0.373143, 0.32499 ]], [[0.566601, 0.415995, 0.394319, 0.308594], [0.571274, 0.584308, 0.509126, 0.400792], ..., [0.555747, 0.550907, 0.481877, 0.506103], [0.826756, 0.726453, 0.503233, 0.40608 ]], [[0.729991, 0.45081 , 0.346333, 0.287687], [0.464994, 0.280035, 0.376221, 0.398249], ..., [0.651628, 0.488675, 0.389599, 0.377094], [0.575188, 0.454535, 0.406677, 0.449032]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-None-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, 3.680656, 3.576601, 3.797627], ..., [ nan, 2.716856, 2.238856, 1.949939], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 3.185359, 3.042236, 2.075765], ..., [ nan, 4.358716, 3.0194 , 2.43648 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 2.393572, 3.137381, 2.32925 ], ..., [ nan, 2.727211, 2.440061, 2.694193], [ nan, nan, nan, nan]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-None-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 2.918653, 2.833004, 2.63843 ], [ nan, 2.716856, 2.238856, 1.949939]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 3.305444, 2.891262, 3.036616], [ nan, 4.358716, 3.0194 , 2.43648 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 2.932052, 2.337596, 2.262561], [ nan, 2.727211, 2.440061, 2.694193]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-1-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.972468, 1.361083, 1.040351, 1.436656], [1.936131, 1.744525, 1.832076, 1.965551], ..., [1.577551, 1.139305, 1.099551, 0.850388], [0.60079 , 0.53446 , 0.360288, 0.8112 ]], [[1.142548, 1.194686, 0.841817, 0.761351], [1.274346, 1.911013, 1.131223, 0.944542], ..., [2.480269, 1.878447, 1.140953, 1.295527], [1.67295 , 1.309346, 0.73377 , 1.22636 ]], [[0.929987, 0.190151, 1.314734, 0.278263], [1.275339, 1.118233, 2.019149, 0.310102], ..., [1.725563, 1.001648, 1.438413, 1.25578 ], [0.861707, 0.884116, 0.921034, 1.123712]]]) R array([[[0.972468, 2.333552, 2.401434, 2.477007], [1.936131, 3.680656, 3.576601, 3.797627], ..., [1.577551, 2.716856, 2.238856, 1.949939], [0.60079 , 1.13525 , 0.894747, 1.171488]], [[1.142548, 2.337234, 2.036503, 1.603168], [1.274346, 3.185359, 3.042236, 2.075765], ..., [2.480269, 4.358716, 3.0194 , 2.43648 ], [1.67295 , 2.982296, 2.043116, 1.96013 ]], [[0.929987, 1.120139, 1.504886, 1.592997], [1.275339, 2.393572, 3.137381, 2.32925 ], ..., [1.725563, 2.727211, 2.440061, 2.694193], [0.861707, 1.745823, 1.80515 , 2.044746]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-1-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.548814, 0.715189, 0.602763, 0.544883], [0.972468, 1.361083, 1.040351, 1.436656], ..., [2.097513, 0.82114 , 2.011863, 0.626567], [1.577551, 1.139305, 1.099551, 0.850388]], [[0.566601, 0.265389, 0.523248, 0.093941], [1.142548, 1.194686, 0.841817, 0.761351], ..., [1.667241, 1.638203, 1.253059, 1.783558], [2.480269, 1.878447, 1.140953, 1.295527]], [[0.729991, 0.17163 , 0.521037, 0.054338], [0.929987, 0.190151, 1.314734, 0.278263], ..., [1.954885, 0.977167, 1.360429, 0.902132], [1.725563, 1.001648, 1.438413, 1.25578 ]]]) R array([[[0.548814, 1.264003, 1.317953, 1.147647], [0.972468, 2.333552, 2.401434, 2.477007], ..., [2.097513, 2.918653, 2.833004, 2.63843 ], [1.577551, 2.716856, 2.238856, 1.949939]], [[0.566601, 0.831991, 0.788638, 0.617189], [1.142548, 2.337234, 2.036503, 1.603168], ..., [1.667241, 3.305444, 2.891262, 3.036616], [2.480269, 4.358716, 3.0194 , 2.43648 ]], [[0.729991, 0.90162 , 0.692666, 0.575375], [0.929987, 1.120139, 1.504886, 1.592997], ..., [1.954885, 2.932052, 2.337596, 2.262561], [1.725563, 2.727211, 2.440061, 2.694193]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-None-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, 0.613443, 0.5961 , 0.632938], ..., [ nan, 0.452809, 0.373143, 0.32499 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 0.530893, 0.507039, 0.345961], ..., [ nan, 0.726453, 0.503233, 0.40608 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 0.398929, 0.522897, 0.388208], ..., [ nan, 0.454535, 0.406677, 0.449032], [ nan, nan, nan, nan]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-None-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.486442, 0.472167, 0.439738], [ nan, 0.452809, 0.373143, 0.32499 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.550907, 0.481877, 0.506103], [ nan, 0.726453, 0.503233, 0.40608 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.488675, 0.389599, 0.377094], [ nan, 0.454535, 0.406677, 0.449032]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-1-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.486234, 0.680542, 0.520175, 0.718328], [0.645377, 0.581508, 0.610692, 0.655184], ..., [0.52585 , 0.379768, 0.366517, 0.283463], [0.300395, 0.26723 , 0.180144, 0.4056 ]], [[0.571274, 0.597343, 0.420909, 0.380675], [0.424782, 0.637004, 0.377074, 0.314847], ..., [0.826756, 0.626149, 0.380318, 0.431842], [0.836475, 0.654673, 0.366885, 0.61318 ]], [[0.464994, 0.095076, 0.657367, 0.139131], [0.425113, 0.372744, 0.67305 , 0.103367], ..., [0.575188, 0.333883, 0.479471, 0.418593], [0.430854, 0.442058, 0.460517, 0.561856]]]) R array([[[0.486234, 0.583388, 0.600359, 0.619252], [0.645377, 0.613443, 0.5961 , 0.632938], ..., [0.52585 , 0.452809, 0.373143, 0.32499 ], [0.300395, 0.283812, 0.223687, 0.292872]], [[0.571274, 0.584308, 0.509126, 0.400792], [0.424782, 0.530893, 0.507039, 0.345961], ..., [0.826756, 0.726453, 0.503233, 0.40608 ], [0.836475, 0.745574, 0.510779, 0.490033]], [[0.464994, 0.280035, 0.376221, 0.398249], [0.425113, 0.398929, 0.522897, 0.388208], ..., [0.575188, 0.454535, 0.406677, 0.449032], [0.430854, 0.436456, 0.451288, 0.511186]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.11

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-1-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.548814, 0.715189, 0.602763, 0.544883], [0.486234, 0.680542, 0.520175, 0.718328], ..., [0.699171, 0.273713, 0.670621, 0.208856], [0.52585 , 0.379768, 0.366517, 0.283463]], [[0.566601, 0.265389, 0.523248, 0.093941], [0.571274, 0.597343, 0.420909, 0.380675], ..., [0.555747, 0.546068, 0.417686, 0.594519], [0.826756, 0.626149, 0.380318, 0.431842]], [[0.729991, 0.17163 , 0.521037, 0.054338], [0.464994, 0.095076, 0.657367, 0.139131], ..., [0.651628, 0.325722, 0.453476, 0.300711], [0.575188, 0.333883, 0.479471, 0.418593]]]) R array([[[0.548814, 0.632001, 0.658976, 0.573823], [0.486234, 0.583388, 0.600359, 0.619252], ..., [0.699171, 0.486442, 0.472167, 0.439738], [0.52585 , 0.452809, 0.373143, 0.32499 ]], [[0.566601, 0.415995, 0.394319, 0.308594], [0.571274, 0.584308, 0.509126, 0.400792], ..., [0.555747, 0.550907, 0.481877, 0.506103], [0.826756, 0.726453, 0.503233, 0.40608 ]], [[0.729991, 0.45081 , 0.346333, 0.287687], [0.464994, 0.280035, 0.376221, 0.398249], ..., [0.651628, 0.488675, 0.389599, 0.377094], [0.575188, 0.454535, 0.406677, 0.449032]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 all-but-dask

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-None-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, 3.680656, 3.576601, 3.797627], ..., [ nan, 2.716856, 2.238856, 1.949939], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 3.185359, 3.042236, 2.075765], ..., [ nan, 4.358716, 3.0194 , 2.43648 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 2.393572, 3.137381, 2.32925 ], ..., [ nan, 2.727211, 2.440061, 2.694193], [ nan, nan, nan, nan]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 all-but-dask

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-None-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 2.918653, 2.833004, 2.63843 ], [ nan, 2.716856, 2.238856, 1.949939]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 3.305444, 2.891262, 3.036616], [ nan, 4.358716, 3.0194 , 2.43648 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 2.932052, 2.337596, 2.262561], [ nan, 2.727211, 2.440061, 2.694193]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 all-but-dask

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-1-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.972468, 1.361083, 1.040351, 1.436656], [1.936131, 1.744525, 1.832076, 1.965551], ..., [1.577551, 1.139305, 1.099551, 0.850388], [0.60079 , 0.53446 , 0.360288, 0.8112 ]], [[1.142548, 1.194686, 0.841817, 0.761351], [1.274346, 1.911013, 1.131223, 0.944542], ..., [2.480269, 1.878447, 1.140953, 1.295527], [1.67295 , 1.309346, 0.73377 , 1.22636 ]], [[0.929987, 0.190151, 1.314734, 0.278263], [1.275339, 1.118233, 2.019149, 0.310102], ..., [1.725563, 1.001648, 1.438413, 1.25578 ], [0.861707, 0.884116, 0.921034, 1.123712]]]) R array([[[0.972468, 2.333552, 2.401434, 2.477007], [1.936131, 3.680656, 3.576601, 3.797627], ..., [1.577551, 2.716856, 2.238856, 1.949939], [0.60079 , 1.13525 , 0.894747, 1.171488]], [[1.142548, 2.337234, 2.036503, 1.603168], [1.274346, 3.185359, 3.042236, 2.075765], ..., [2.480269, 4.358716, 3.0194 , 2.43648 ], [1.67295 , 2.982296, 2.043116, 1.96013 ]], [[0.929987, 1.120139, 1.504886, 1.592997], [1.275339, 2.393572, 3.137381, 2.32925 ], ..., [1.725563, 2.727211, 2.440061, 2.694193], [0.861707, 1.745823, 1.80515 , 2.044746]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 all-but-dask

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-1-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.548814, 0.715189, 0.602763, 0.544883], [0.972468, 1.361083, 1.040351, 1.436656], ..., [2.097513, 0.82114 , 2.011863, 0.626567], [1.577551, 1.139305, 1.099551, 0.850388]], [[0.566601, 0.265389, 0.523248, 0.093941], [1.142548, 1.194686, 0.841817, 0.761351], ..., [1.667241, 1.638203, 1.253059, 1.783558], [2.480269, 1.878447, 1.140953, 1.295527]], [[0.729991, 0.17163 , 0.521037, 0.054338], [0.929987, 0.190151, 1.314734, 0.278263], ..., [1.954885, 0.977167, 1.360429, 0.902132], [1.725563, 1.001648, 1.438413, 1.25578 ]]]) R array([[[0.548814, 1.264003, 1.317953, 1.147647], [0.972468, 2.333552, 2.401434, 2.477007], ..., [2.097513, 2.918653, 2.833004, 2.63843 ], [1.577551, 2.716856, 2.238856, 1.949939]], [[0.566601, 0.831991, 0.788638, 0.617189], [1.142548, 2.337234, 2.036503, 1.603168], ..., [1.667241, 3.305444, 2.891262, 3.036616], [2.480269, 4.358716, 3.0194 , 2.43648 ]], [[0.729991, 0.90162 , 0.692666, 0.575375], [0.929987, 1.120139, 1.504886, 1.592997], ..., [1.954885, 2.932052, 2.337596, 2.262561], [1.725563, 2.727211, 2.440061, 2.694193]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 all-but-dask

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-None-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, 0.613443, 0.5961 , 0.632938], ..., [ nan, 0.452809, 0.373143, 0.32499 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 0.530893, 0.507039, 0.345961], ..., [ nan, 0.726453, 0.503233, 0.40608 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 0.398929, 0.522897, 0.388208], ..., [ nan, 0.454535, 0.406677, 0.449032], [ nan, nan, nan, nan]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 all-but-dask

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-None-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.486442, 0.472167, 0.439738], [ nan, 0.452809, 0.373143, 0.32499 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.550907, 0.481877, 0.506103], [ nan, 0.726453, 0.503233, 0.40608 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.488675, 0.389599, 0.377094], [ nan, 0.454535, 0.406677, 0.449032]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 all-but-dask

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-1-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.486234, 0.680542, 0.520175, 0.718328], [0.645377, 0.581508, 0.610692, 0.655184], ..., [0.52585 , 0.379768, 0.366517, 0.283463], [0.300395, 0.26723 , 0.180144, 0.4056 ]], [[0.571274, 0.597343, 0.420909, 0.380675], [0.424782, 0.637004, 0.377074, 0.314847], ..., [0.826756, 0.626149, 0.380318, 0.431842], [0.836475, 0.654673, 0.366885, 0.61318 ]], [[0.464994, 0.095076, 0.657367, 0.139131], [0.425113, 0.372744, 0.67305 , 0.103367], ..., [0.575188, 0.333883, 0.479471, 0.418593], [0.430854, 0.442058, 0.460517, 0.561856]]]) R array([[[0.486234, 0.583388, 0.600359, 0.619252], [0.645377, 0.613443, 0.5961 , 0.632938], ..., [0.52585 , 0.452809, 0.373143, 0.32499 ], [0.300395, 0.283812, 0.223687, 0.292872]], [[0.571274, 0.584308, 0.509126, 0.400792], [0.424782, 0.530893, 0.507039, 0.345961], ..., [0.826756, 0.726453, 0.503233, 0.40608 ], [0.836475, 0.745574, 0.510779, 0.490033]], [[0.464994, 0.280035, 0.376221, 0.398249], [0.425113, 0.398929, 0.522897, 0.388208], ..., [0.575188, 0.454535, 0.406677, 0.449032], [0.430854, 0.436456, 0.451288, 0.511186]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 all-but-dask

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-1-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.548814, 0.715189, 0.602763, 0.544883], [0.486234, 0.680542, 0.520175, 0.718328], ..., [0.699171, 0.273713, 0.670621, 0.208856], [0.52585 , 0.379768, 0.366517, 0.283463]], [[0.566601, 0.265389, 0.523248, 0.093941], [0.571274, 0.597343, 0.420909, 0.380675], ..., [0.555747, 0.546068, 0.417686, 0.594519], [0.826756, 0.626149, 0.380318, 0.431842]], [[0.729991, 0.17163 , 0.521037, 0.054338], [0.464994, 0.095076, 0.657367, 0.139131], ..., [0.651628, 0.325722, 0.453476, 0.300711], [0.575188, 0.333883, 0.479471, 0.418593]]]) R array([[[0.548814, 0.632001, 0.658976, 0.573823], [0.486234, 0.583388, 0.600359, 0.619252], ..., [0.699171, 0.486442, 0.472167, 0.439738], [0.52585 , 0.452809, 0.373143, 0.32499 ]], [[0.566601, 0.415995, 0.394319, 0.308594], [0.571274, 0.584308, 0.509126, 0.400792], ..., [0.555747, 0.550907, 0.481877, 0.506103], [0.826756, 0.726453, 0.503233, 0.40608 ]], [[0.729991, 0.45081 , 0.346333, 0.287687], [0.464994, 0.280035, 0.376221, 0.398249], ..., [0.651628, 0.488675, 0.389599, 0.377094], [0.575188, 0.454535, 0.406677, 0.449032]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 flaky

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-None-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, 3.680656, 3.576601, 3.797627], ..., [ nan, 2.716856, 2.238856, 1.949939], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 3.185359, 3.042236, 2.075765], ..., [ nan, 4.358716, 3.0194 , 2.43648 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 2.393572, 3.137381, 2.32925 ], ..., [ nan, 2.727211, 2.440061, 2.694193], [ nan, nan, nan, nan]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 flaky

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-None-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 2.918653, 2.833004, 2.63843 ], [ nan, 2.716856, 2.238856, 1.949939]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 3.305444, 2.891262, 3.036616], [ nan, 4.358716, 3.0194 , 2.43648 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 2.932052, 2.337596, 2.262561], [ nan, 2.727211, 2.440061, 2.694193]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 flaky

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-1-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.972468, 1.361083, 1.040351, 1.436656], [1.936131, 1.744525, 1.832076, 1.965551], ..., [1.577551, 1.139305, 1.099551, 0.850388], [0.60079 , 0.53446 , 0.360288, 0.8112 ]], [[1.142548, 1.194686, 0.841817, 0.761351], [1.274346, 1.911013, 1.131223, 0.944542], ..., [2.480269, 1.878447, 1.140953, 1.295527], [1.67295 , 1.309346, 0.73377 , 1.22636 ]], [[0.929987, 0.190151, 1.314734, 0.278263], [1.275339, 1.118233, 2.019149, 0.310102], ..., [1.725563, 1.001648, 1.438413, 1.25578 ], [0.861707, 0.884116, 0.921034, 1.123712]]]) R array([[[0.972468, 2.333552, 2.401434, 2.477007], [1.936131, 3.680656, 3.576601, 3.797627], ..., [1.577551, 2.716856, 2.238856, 1.949939], [0.60079 , 1.13525 , 0.894747, 1.171488]], [[1.142548, 2.337234, 2.036503, 1.603168], [1.274346, 3.185359, 3.042236, 2.075765], ..., [2.480269, 4.358716, 3.0194 , 2.43648 ], [1.67295 , 2.982296, 2.043116, 1.96013 ]], [[0.929987, 1.120139, 1.504886, 1.592997], [1.275339, 2.393572, 3.137381, 2.32925 ], ..., [1.725563, 2.727211, 2.440061, 2.694193], [0.861707, 1.745823, 1.80515 , 2.044746]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 flaky

TestDataArrayRolling.test_ndrolling_reduce[numpy-sum-1-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[0.548814, 0.715189, 0.602763, 0.544883], [0.972468, 1.361083, 1.040351, 1.436656], ..., [2.097513, 0.82114 , 2.011863, 0.626567], [1.577551, 1.139305, 1.099551, 0.850388]], [[0.566601, 0.265389, 0.523248, 0.093941], [1.142548, 1.194686, 0.841817, 0.761351], ..., [1.667241, 1.638203, 1.253059, 1.783558], [2.480269, 1.878447, 1.140953, 1.295527]], [[0.729991, 0.17163 , 0.521037, 0.054338], [0.929987, 0.190151, 1.314734, 0.278263], ..., [1.954885, 0.977167, 1.360429, 0.902132], [1.725563, 1.001648, 1.438413, 1.25578 ]]]) R array([[[0.548814, 1.264003, 1.317953, 1.147647], [0.972468, 2.333552, 2.401434, 2.477007], ..., [2.097513, 2.918653, 2.833004, 2.63843 ], [1.577551, 2.716856, 2.238856, 1.949939]], [[0.566601, 0.831991, 0.788638, 0.617189], [1.142548, 2.337234, 2.036503, 1.603168], ..., [1.667241, 3.305444, 2.891262, 3.036616], [2.480269, 4.358716, 3.0194 , 2.43648 ]], [[0.729991, 0.90162 , 0.692666, 0.575375], [0.929987, 1.120139, 1.504886, 1.592997], ..., [1.954885, 2.932052, 2.337596, 2.262561], [1.725563, 2.727211, 2.440061, 2.694193]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 flaky

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-None-True-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, 0.613443, 0.5961 , 0.632938], ..., [ nan, 0.452809, 0.373143, 0.32499 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 0.530893, 0.507039, 0.345961], ..., [ nan, 0.726453, 0.503233, 0.40608 ], [ nan, nan, nan, nan]], [[ nan, nan, nan, nan], [ nan, 0.398929, 0.522897, 0.388208], ..., [ nan, 0.454535, 0.406677, 0.449032], [ nan, nan, nan, nan]]])

Check failure on line 300 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 flaky

TestDataArrayRolling.test_ndrolling_reduce[numpy-mean-None-False-1] AssertionError: Left and right DataArray objects are not close Differing values: L array([[[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]], [[nan, nan, nan, nan], [nan, nan, nan, nan], ..., [nan, nan, nan, nan], [nan, nan, nan, nan]]]) R array([[[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.486442, 0.472167, 0.439738], [ nan, 0.452809, 0.373143, 0.32499 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.550907, 0.481877, 0.506103], [ nan, 0.726453, 0.503233, 0.40608 ]], [[ nan, nan, nan, nan], [ nan, nan, nan, nan], ..., [ nan, 0.488675, 0.389599, 0.377094], [ nan, 0.454535, 0.406677, 0.449032]]])
assert actual.dims == expected.dims

if name in ["mean"]:
# test our reimplementation of nanmean using np.nanmean
expected = getattr(
rolling_obj.construct({"time": "tw", "x": "xw"}), name
)(["tw", "xw"])
count = rolling_obj.count()
if min_periods is None:
min_periods = 1
assert_allclose(actual, expected.where(count >= min_periods))

@pytest.mark.parametrize("center", (True, False, (True, False)))
@pytest.mark.parametrize("fill_value", (np.nan, 0.0))
Expand Down Expand Up @@ -577,7 +584,7 @@
)
else:
raise ValueError
assert_array_equal(actual[key].values, expected)

Check failure on line 587 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9

TestDatasetRolling.test_rolling_wrapped_bottleneck[1-numpy-z2-1-True-mean] AssertionError: Arrays are not equal Mismatched elements: 1 / 20 (5%) Max absolute difference: 1.38777878e-17 Max relative difference: 1.31869714e-16 x: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],... y: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],...

Check failure on line 587 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9

TestDatasetRolling.test_rolling_wrapped_bottleneck[1-numpy-z2-1-False-mean] AssertionError: Arrays are not equal Mismatched elements: 1 / 20 (5%) Max absolute difference: 1.38777878e-17 Max relative difference: 1.31869714e-16 x: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],... y: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],...

Check failure on line 587 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.11

TestDatasetRolling.test_rolling_wrapped_bottleneck[1-numpy-z2-1-True-mean] AssertionError: Arrays are not equal Mismatched elements: 1 / 20 (5%) Max absolute difference: 1.38777878e-17 Max relative difference: 1.31869714e-16 x: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],... y: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],...

Check failure on line 587 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.11

TestDatasetRolling.test_rolling_wrapped_bottleneck[1-numpy-z2-1-False-mean] AssertionError: Arrays are not equal Mismatched elements: 1 / 20 (5%) Max absolute difference: 1.38777878e-17 Max relative difference: 1.31869714e-16 x: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],... y: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],...

Check failure on line 587 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.9

TestDatasetRolling.test_rolling_wrapped_bottleneck[1-numpy-z2-1-True-mean] AssertionError: Arrays are not equal Mismatched elements: 1 / 20 (5%) Max absolute difference: 1.38777878e-17 Max relative difference: 1.31869714e-16 x: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],... y: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],...

Check failure on line 587 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.9

TestDatasetRolling.test_rolling_wrapped_bottleneck[1-numpy-z2-1-False-mean] AssertionError: Arrays are not equal Mismatched elements: 1 / 20 (5%) Max absolute difference: 1.38777878e-17 Max relative difference: 1.31869714e-16 x: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],... y: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],...

Check failure on line 587 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.11

TestDatasetRolling.test_rolling_wrapped_bottleneck[1-numpy-z2-1-True-mean] AssertionError: Arrays are not equal Mismatched elements: 1 / 20 (5%) Max absolute difference: 1.38777878e-17 Max relative difference: 1.31869714e-16 x: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],... y: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],...

Check failure on line 587 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.11

TestDatasetRolling.test_rolling_wrapped_bottleneck[1-numpy-z2-1-False-mean] AssertionError: Arrays are not equal Mismatched elements: 1 / 20 (5%) Max absolute difference: 1.38777878e-17 Max relative difference: 1.31869714e-16 x: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],... y: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],...

Check failure on line 587 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 all-but-dask

TestDatasetRolling.test_rolling_wrapped_bottleneck[1-numpy-z2-1-True-mean] AssertionError: Arrays are not equal Mismatched elements: 1 / 20 (5%) Max absolute difference: 1.38777878e-17 Max relative difference: 1.31869714e-16 x: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],... y: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],...

Check failure on line 587 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 all-but-dask

TestDatasetRolling.test_rolling_wrapped_bottleneck[1-numpy-z2-1-False-mean] AssertionError: Arrays are not equal Mismatched elements: 1 / 20 (5%) Max absolute difference: 1.38777878e-17 Max relative difference: 1.31869714e-16 x: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],... y: array([[ 1.494079, -0.205158], [ 0.903573, -0.529627], [-0.248614, -0.135212],...

# Test center
rolling_obj = ds.rolling(time=7, center=center)
Expand Down Expand Up @@ -726,7 +733,7 @@
)().rolling(x=3, center=center, min_periods=min_periods),
name,
)()
assert_allclose(actual, expected)

Check failure on line 736 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 flaky

TestDatasetRolling.test_ndrolling_reduce[numpy-False-sum-None-True-2] AssertionError: Left and right Dataset objects are not close Differing data variables: L z3 (x, time) float64 nan nan nan nan nan nan ... nan nan nan nan nan R z3 (x, time) float64 nan nan nan nan nan nan ... nan nan nan nan nan

Check failure on line 736 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 flaky

TestDatasetRolling.test_ndrolling_reduce[numpy-False-sum-None-False-2] AssertionError: Left and right Dataset objects are not close Differing data variables: L z3 (x, time) float64 nan nan nan nan nan nan ... nan nan nan nan nan R z3 (x, time) float64 nan nan nan nan nan ... 6.403 6.852 7.159 5.55

Check failure on line 736 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 flaky

TestDatasetRolling.test_ndrolling_reduce[numpy-False-sum-1-True-2] AssertionError: Left and right Dataset objects are not close Differing data variables: L z3 (x, time) float64 0.5331 -0.3547 -2.335 ... 2.705 2.242 2.656 R z3 (x, time) float64 -1.935 -4.53 -4.56 -4.523 ... 5.335 4.568 4.971

Check failure on line 736 in xarray/tests/test_rolling.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 flaky

TestDatasetRolling.test_ndrolling_reduce[numpy-False-sum-1-False-2] AssertionError: Left and right Dataset objects are not close Differing data variables: L z3 (x, time) float64 0.1549 0.5331 -0.3547 ... -0.3906 2.705 2.242 R z3 (x, time) float64 0.1549 0.5331 -0.3547 -2.335 ... 6.852 7.159 5.55
assert actual.dims == expected.dims

# Do it in the opposite order
Expand Down
Loading