Source: pyorbital
Version: 1.8.2-1
Severity: serious

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dear maintainer,

the pyorbital package has an autopkgtest regression on i386 only with
NumPy 1.26.4. Hopefully relevant excerpt from test log at
https://ci.debian.net/data/autopkgtest/testing/i386/p/pyorbital/45030100/log.gz
follows:


  127s =================================== FAILURES 
  ===================================
  127s _____________________ TestGetObserverLook.test_basic_dask 
______________________
  127s
  127s self = <pyorbital.tests.test_orbital.TestGetObserverLook 
testMethod=test_basic_dask>
  127s
  127s     def test_basic_dask(self):
  127s         """Test with dask array inputs"""
  127s         from pyorbital import orbital
  127s         import dask.array as da
  127s         sat_lon = da.from_array(self.sat_lon, chunks=2)
  127s         sat_lat = da.from_array(self.sat_lat, chunks=2)
  127s         sat_alt = da.from_array(self.sat_alt, chunks=2)
  127s         lon = da.from_array(self.lon, chunks=2)
  127s         lat = da.from_array(self.lat, chunks=2)
  127s         alt = da.from_array(self.alt, chunks=2)
  127s         azi, elev = orbital.get_observer_look(sat_lon, sat_lat,
  127s                                               sat_alt, self.t,
  127s                                               lon, lat, alt)
  127s >       np.testing.assert_allclose(azi.compute(), self.exp_azi)
  127s
  127s /usr/lib/python3/dist-packages/pyorbital/tests/test_orbital.py:259:
  127s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _
  127s
  127s args = (<function assert_allclose.<locals>.compare at 0xf0c0cf28>, 
array([[331.00275902, 330.95954165, 180.        ,  86.4354...00275902, 
330.95954165, 180.        ,  86.435411  ],
  127s        [330.91642994, 180.        ,   0.        , 273.232073  ]]))
  127s kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to 
tolerance rtol=1e-07, atol=0', 'verbose': True}
  127s
  127s     @wraps(func)
  127s     def inner(*args, **kwds):
  127s         with self._recreate_cm():
  127s >           return func(*args, **kwds)
  127s E           AssertionError:
  127s E           Not equal to tolerance rtol=1e-07, atol=0
  127s E
  127s E           Mismatched elements: 1 / 8 (12.5%)
  127s E           Max absolute difference: 14.03624347
  127s E           Max relative difference: 0.07797913
  127s E            x: array([[331.002759, 330.959542, 180.      ,  86.435411],
  127s E                  [330.91643 , 165.963757,   0.      , 273.232073]])
  127s E            y: array([[331.002759, 330.959542, 180.      ,  86.435411],
  127s E                  [330.91643 , 180.      ,   0.      , 273.232073]])
  127s
  127s /usr/lib/python3.11/contextlib.py:81: AssertionError
  127s _____________________ TestGetObserverLook.test_basic_numpy 
_____________________
  127s
  127s self = <pyorbital.tests.test_orbital.TestGetObserverLook 
testMethod=test_basic_numpy>
  127s
  127s     def test_basic_numpy(self):
  127s         """Test with numpy array inputs"""
  127s         from pyorbital import orbital
  127s         azi, elev = orbital.get_observer_look(self.sat_lon, self.sat_lat,
  127s                                               self.sat_alt, self.t,
  127s                                               self.lon, self.lat, 
self.alt)
  127s >       np.testing.assert_allclose(azi, self.exp_azi)
  127s
  127s /usr/lib/python3/dist-packages/pyorbital/tests/test_orbital.py:243:
  127s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _
  127s
  127s args = (<function assert_allclose.<locals>.compare at 0xf0abaf28>, 
array([[331.00275902, 330.95954165, 180.        ,  86.4354...00275902, 
330.95954165, 180.        ,  86.435411  ],
  127s        [330.91642994, 180.        ,   0.        , 273.232073  ]]))
  127s kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to 
tolerance rtol=1e-07, atol=0', 'verbose': True}
  127s
  127s     @wraps(func)
  127s     def inner(*args, **kwds):
  127s         with self._recreate_cm():
  127s >           return func(*args, **kwds)
  127s E           AssertionError:
  127s E           Not equal to tolerance rtol=1e-07, atol=0
  127s E
  127s E           Mismatched elements: 1 / 8 (12.5%)
  127s E           Max absolute difference: 14.03624347
  127s E           Max relative difference: 0.07797913
  127s E            x: array([[331.002759, 330.959542, 180.      ,  86.435411],
  127s E                  [330.91643 , 165.963757,   0.      , 273.232073]])
  127s E            y: array([[331.002759, 330.959542, 180.      ,  86.435411],
  127s E                  [330.91643 , 180.      ,   0.      , 273.232073]])
  127s
  127s /usr/lib/python3.11/contextlib.py:81: AssertionError
  127s __________________ TestGetObserverLook.test_xarray_with_dask 
___________________
  127s
  127s self = <pyorbital.tests.test_orbital.TestGetObserverLook 
testMethod=test_xarray_with_dask>
  127s
  127s     def test_xarray_with_dask(self):
  127s         """Test with xarray DataArray with dask array as inputs"""
  127s         from pyorbital import orbital
  127s         import dask.array as da
  127s         import xarray as xr
  127s
  127s         def _xarr_conv(input):
  127s             return xr.DataArray(da.from_array(input, chunks=2))
  127s         sat_lon = _xarr_conv(self.sat_lon)
  127s         sat_lat = _xarr_conv(self.sat_lat)
  127s         sat_alt = _xarr_conv(self.sat_alt)
  127s         lon = _xarr_conv(self.lon)
  127s         lat = _xarr_conv(self.lat)
  127s         alt = _xarr_conv(self.alt)
  127s         azi, elev = orbital.get_observer_look(sat_lon, sat_lat,
  127s                                               sat_alt, self.t,
  127s                                               lon, lat, alt)
  127s >       np.testing.assert_allclose(azi.data.compute(), self.exp_azi)
  127s
  127s /usr/lib/python3/dist-packages/pyorbital/tests/test_orbital.py:298:
  127s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _
  127s
  127s args = (<function assert_allclose.<locals>.compare at 0xf022cc58>, 
array([[331.00275902, 330.95954165, 180.        ,  86.4354...00275902, 
330.95954165, 180.        ,  86.435411  ],
  127s        [330.91642994, 180.        ,   0.        , 273.232073  ]]))
  127s kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to 
tolerance rtol=1e-07, atol=0', 'verbose': True}
  127s
  127s     @wraps(func)
  127s     def inner(*args, **kwds):
  127s         with self._recreate_cm():
  127s >           return func(*args, **kwds)
  127s E           AssertionError:
  127s E           Not equal to tolerance rtol=1e-07, atol=0
  127s E
  127s E           Mismatched elements: 1 / 8 (12.5%)
  127s E           Max absolute difference: 14.03624347
  127s E           Max relative difference: 0.07797913
  127s E            x: array([[331.002759, 330.959542, 180.      ,  86.435411],
  127s E                  [330.91643 , 165.963757,   0.      , 273.232073]])
  127s E            y: array([[331.002759, 330.959542, 180.      ,  86.435411],
  127s E                  [330.91643 , 180.      ,   0.      , 273.232073]])
  127s
  127s /usr/lib/python3.11/contextlib.py:81: AssertionError
  127s __________________ TestGetObserverLook.test_xarray_with_numpy 
__________________
  127s
  127s self = <pyorbital.tests.test_orbital.TestGetObserverLook 
testMethod=test_xarray_with_numpy>
  127s
  127s     def test_xarray_with_numpy(self):
  127s         """Test with xarray DataArray with numpy array as inputs"""
  127s         from pyorbital import orbital
  127s         import xarray as xr
  127s
  127s         def _xarr_conv(input):
  127s             return xr.DataArray(input)
  127s         sat_lon = _xarr_conv(self.sat_lon)
  127s         sat_lat = _xarr_conv(self.sat_lat)
  127s         sat_alt = _xarr_conv(self.sat_alt)
  127s         lon = _xarr_conv(self.lon)
  127s         lat = _xarr_conv(self.lat)
  127s         alt = _xarr_conv(self.alt)
  127s         azi, elev = orbital.get_observer_look(sat_lon, sat_lat,
  127s                                               sat_alt, self.t,
  127s                                               lon, lat, alt)
  127s >       np.testing.assert_allclose(azi.data, self.exp_azi)
  127s
  127s /usr/lib/python3/dist-packages/pyorbital/tests/test_orbital.py:278:
  127s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _
  127s
  127s args = (<function assert_allclose.<locals>.compare at 0xf0248e88>, 
array([[331.00275902, 330.95954165, 180.        ,  86.4354...00275902, 
330.95954165, 180.        ,  86.435411  ],
  127s        [330.91642994, 180.        ,   0.        , 273.232073  ]]))
  127s kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to 
tolerance rtol=1e-07, atol=0', 'verbose': True}
  127s
  127s     @wraps(func)
  127s     def inner(*args, **kwds):
  127s         with self._recreate_cm():
  127s >           return func(*args, **kwds)
  127s E           AssertionError:
  127s E           Not equal to tolerance rtol=1e-07, atol=0
  127s E
  127s E           Mismatched elements: 1 / 8 (12.5%)
  127s E           Max absolute difference: 14.03624347
  127s E           Max relative difference: 0.07797913
  127s E            x: array([[331.002759, 330.959542, 180.      ,  86.435411],
  127s E                  [330.91643 , 165.963757,   0.      , 273.232073]])
  127s E            y: array([[331.002759, 330.959542, 180.      ,  86.435411],
  127s E                  [330.91643 , 180.      ,   0.      , 273.232073]])
  127s
  127s /usr/lib/python3.11/contextlib.py:81: AssertionError
  127s =========================== short test summary info 
============================
  127s FAILED tests/test_orbital.py::TestGetObserverLook::test_basic_dask - 
Assertio...
  127s FAILED tests/test_orbital.py::TestGetObserverLook::test_basic_numpy - 
Asserti...
  127s FAILED tests/test_orbital.py::TestGetObserverLook::test_xarray_with_dask 
- As...
  127s FAILED 
tests/test_orbital.py::TestGetObserverLook::test_xarray_with_numpy - A...
  127s =================== 4 failed, 60 passed, 1 skipped in 7.68s 
====================


Cheers
Timo



-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEmwPruYMA35fCsSO/zIxr3RQD9MoFAmYT6g4ACgkQzIxr3RQD
9MqhHRAAh8zdfMWSgV3cng8hE3Kxm89kj9DIv/vEmEq+bXEjmBmqnU64unRvkFeA
BCwlBtZyig5sbFfC3UBi7XffL6bC9yotVXd8M1hGgu34EAVGY65Q529/w3bsx/I2
DJXZTGC7PnGkG4uOrTDb3A1dQberUgGIc1s8NzgJXqqjsnxie75w8Fpk1EndMyuS
DKGU2eNJar+hXm0I7ZKYNzlezgdzsyQFoK8+Yu+LYkz4+JlgU/S9ODqgYrRekwWK
rYW4pUFfT0zIB619bkkm2GdKNmviELIJm4T+OXXyQmvbvlwrBrtk0inQ3IvRV2hZ
hnpS5wJ/f8Em9NNvBiPL5dM/S6dKfVT0isbGdpA3E76zIfRRx+c8oEBeyLg9c4Bo
tItUzygzrp+nPXyTyefOgf2MPtk5Eexd/lffmSHoWCIs5jlvOVSiHWUmrWjTAEkP
VW6RHP7E9aMWf8Vt4wd/em+RKttTz9Rmncoexg+344fi6D2nHHKt6V50wED81AG1
BmCoAWZCxsnxv9Qku94DJ4alEFSoGYxKiwVHxRXyKqu9kEtN4r+tZ5wSmFwDtqno
+Vj5ZwKcu0jQ7268RKS+IzoEGiHfHzCdx2gGNQDQY1Gun37zwFOIyyV6n3UJ6YTm
QIgjbzWh/mbaYX8aHWFar/PLggcJb6l3SZA8kQ4HF0XvZxaeO4Q=
=PTnk
-----END PGP SIGNATURE-----

Reply via email to