Bug#1004869: python-xarray: autopkgtest regression on i386
Graham Inggs
ginggs at debian.org
Wed Feb 2 19:29:58 GMT 2022
Source: python-xarray
Version: 0.21.0-1
X-Debbugs-CC: debian-ci at lists.debian.org
Severity: serious
User: debian-ci at lists.debian.org
Usertags: regression
Hi Maintainer
python-xarray's autopkgtests are failing on the i386 architecture [1].
I've copied what I hope is the relevant part of the log below.
Regards
Graham
[1] https://ci.debian.net/packages/p/python-xarray/unstable/i386/
=================================== FAILURES ===================================
___________________ test_interpolate_chunk_advanced[linear] ____________________
method = 'linear'
@requires_scipy
@requires_dask
@pytest.mark.parametrize("method", ["linear", "nearest"])
@pytest.mark.filterwarnings("ignore:Increasing number of chunks")
def test_interpolate_chunk_advanced(method):
"""Interpolate nd array with an nd indexer sharing coordinates."""
# Create original array
x = np.linspace(-1, 1, 5)
y = np.linspace(-1, 1, 7)
z = np.linspace(-1, 1, 11)
t = np.linspace(0, 1, 13)
q = np.linspace(0, 1, 17)
da = xr.DataArray(
data=np.sin(x[:, np.newaxis, np.newaxis, np.newaxis, np.newaxis])
* np.cos(y[:, np.newaxis, np.newaxis, np.newaxis])
* np.exp(z[:, np.newaxis, np.newaxis])
* t[:, np.newaxis]
+ q,
dims=("x", "y", "z", "t", "q"),
coords={"x": x, "y": y, "z": z, "t": t, "q": q, "label":
"dummy_attr"},
)
# Create indexer into `da` with shared coordinate
("full-twist" Möbius strip)
theta = np.linspace(0, 2 * np.pi, 5)
w = np.linspace(-0.25, 0.25, 7)
r = xr.DataArray(
data=1 + w[:, np.newaxis] * np.cos(theta),
coords=[("w", w), ("theta", theta)],
)
x = r * np.cos(theta)
y = r * np.sin(theta)
z = xr.DataArray(
data=w[:, np.newaxis] * np.sin(theta),
coords=[("w", w), ("theta", theta)],
)
kwargs = {"fill_value": None}
expected = da.interp(t=0.5, x=x, y=y, z=z, kwargs=kwargs, method=method)
da = da.chunk(2)
x = x.chunk(1)
z = z.chunk(3)
actual = da.interp(t=0.5, x=x, y=y, z=z, kwargs=kwargs, method=method)
> assert_identical(actual, expected)
E AssertionError: Left and right DataArray objects are not identical
E
E Differing values:
E L
E array([[[ 3.302241e-01, 3.927241e-01, ..., 1.267724e+00,
1.330224e+00],
E [ 1.239764e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E ...,
E [-5.560517e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E [ 3.302241e-01, 3.927241e-01, ..., 1.267724e+00,
1.330224e+00]],
E
E [[ 3.603946e-01, 4.228946e-01, ..., 1.297895e+00,
1.360395e+00],
E [ 1.346533e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E ...,
E [-5.109700e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E [ 3.603946e-01, 4.228946e-01, ..., 1.297895e+00,
1.360395e+00]],
E
E ...,
E
E [[ 4.810764e-01, 5.435764e-01, ..., 1.418576e+00,
1.481076e+00],
E [ 1.878775e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E ...,
E [-3.662163e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E [ 4.810764e-01, 5.435764e-01, ..., 1.418576e+00,
1.481076e+00]],
E
E [[ 5.112469e-01, 5.737469e-01, ..., 1.448747e+00,
1.511247e+00],
E [ 2.044535e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E ...,
E [-3.371783e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E [ 5.112469e-01, 5.737469e-01, ..., 1.448747e+00,
1.511247e+00]]])
E R
E array([[[ 3.302241e-01, 3.927241e-01, ..., 1.267724e+00,
1.330224e+00],
E [ 1.239764e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E ...,
E [-5.560517e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E [ 3.302241e-01, 3.927241e-01, ..., 1.267724e+00,
1.330224e+00]],
E
E [[ 3.603946e-01, 4.228946e-01, ..., 1.297895e+00,
1.360395e+00],
E [ 1.346533e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E ...,
E [-5.109700e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E [ 3.603946e-01, 4.228946e-01, ..., 1.297895e+00,
1.360395e+00]],
E
E ...,
E
E [[ 4.810764e-01, 5.435764e-01, ..., 1.418576e+00,
1.481076e+00],
E [ 1.878775e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E ...,
E [-3.662163e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E [ 4.810764e-01, 5.435764e-01, ..., 1.418576e+00,
1.481076e+00]],
E
E [[ 5.112469e-01, 5.737469e-01, ..., 1.448747e+00,
1.511247e+00],
E [ 2.044535e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E ...,
E [-3.371783e-17, 6.250000e-02, ..., 9.375000e-01,
1.000000e+00],
E [ 5.112469e-01, 5.737469e-01, ..., 1.448747e+00,
1.511247e+00]]])
/usr/lib/python3/dist-packages/xarray/tests/test_interp.py:874: AssertionError
More information about the debian-science-maintainers
mailing list