Bug#1053748: satpy: autopkgtest needs update for python-xarray 2023.09.0

Graham Inggs ginggs at debian.org
Tue Oct 10 11:11:37 BST 2023


Source: satpy
Version: 0.43.0-5
User: debian-ci at lists.debian.org
Usertags: needs-update

Hi Maintainer

Since the upload of python-xarray 2023.09.0-1, the autopkgtests of
satpy are failing [1].  I've copied what I hope is the relevant part
of the log below.

Regards
Graham


[1] https://ci.debian.net/packages/s/satpy/testing/amd64/


357s =================================== FAILURES
===================================
357s _________________ TestEncodingKwarg.test_encoding_kwarg[True]
__________________
357s
357s self = <satpy.tests.writer_tests.test_cf.TestEncodingKwarg object
at 0x7ff117253190>
357s scene = <satpy.scene.Scene object at 0x7ff040590990>
357s encoding = {'test-array': {'_FillValue': 3, 'add_offset': 0.0,
'complevel': 7, 'compression': 'zlib', ...}}
357s filename =
'/tmp/pytest-of-debci/pytest-0/test_encoding_kwarg_True_0/test.nc'
357s expected = {'complevel': 7, 'data': [10, 20, 30], 'dtype': <class
'numpy.int8'>, 'fill_value': 3, ...}
357s
357s     def test_encoding_kwarg(self, scene, encoding, filename, expected):
357s         """Test 'encoding' keyword argument."""
357s         scene.save_datasets(filename=filename, encoding=encoding,
writer='cf')
357s >       self._assert_encoding_as_expected(filename, expected)
357s
357s /usr/lib/python3/dist-packages/satpy/tests/writer_tests/test_cf.py:1388:
357s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
357s
357s self = <satpy.tests.writer_tests.test_cf.TestEncodingKwarg object
at 0x7ff117253190>
357s filename =
'/tmp/pytest-of-debci/pytest-0/test_encoding_kwarg_True_0/test.nc'
357s expected = {'complevel': 7, 'data': [10, 20, 30], 'dtype': <class
'numpy.int8'>, 'fill_value': 3, ...}
357s
357s     def _assert_encoding_as_expected(self, filename, expected):
357s         with xr.open_dataset(filename, mask_and_scale=False) as f:
357s             np.testing.assert_array_equal(f['test-array'][:],
expected["data"])
357s             assert f['test-array'].attrs['scale_factor'] ==
expected["scale_factor"]
357s             assert f['test-array'].attrs['_FillValue'] ==
expected["fill_value"]
357s             assert f['test-array'].dtype == expected["dtype"]
357s >           assert f["test-array"].encoding["complevel"] ==
expected["complevel"]
357s E           assert 0 == 7
357s
357s /usr/lib/python3/dist-packages/satpy/tests/writer_tests/test_cf.py:1396:
AssertionError
357s _______________ TestEncodingAttribute.test_encoding_kwarg[True]
________________
357s
357s self = <satpy.tests.writer_tests.test_cf.TestEncodingAttribute
object at 0x7ff1172366d0>
357s scene = <satpy.scene.Scene object at 0x7ff040705750>
357s encoding = {'test-array': {'_FillValue': 3, 'add_offset': 0.0,
'complevel': 7, 'compression': 'zlib', ...}}
357s filename =
'/tmp/pytest-of-debci/pytest-0/test_encoding_kwarg_True_1/test.nc'
357s expected = {'complevel': 7, 'data': [10, 20, 30], 'dtype': <class
'numpy.int8'>, 'fill_value': 3, ...}
357s
357s     def test_encoding_kwarg(self, scene, encoding, filename, expected):
357s         """Test 'encoding' keyword argument."""
357s         scene.save_datasets(filename=filename, encoding=encoding,
writer='cf')
357s >       self._assert_encoding_as_expected(filename, expected)
357s
357s /usr/lib/python3/dist-packages/satpy/tests/writer_tests/test_cf.py:1388:
357s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
357s
357s self = <satpy.tests.writer_tests.test_cf.TestEncodingAttribute
object at 0x7ff1172366d0>
357s filename =
'/tmp/pytest-of-debci/pytest-0/test_encoding_kwarg_True_1/test.nc'
357s expected = {'complevel': 7, 'data': [10, 20, 30], 'dtype': <class
'numpy.int8'>, 'fill_value': 3, ...}
357s
357s     def _assert_encoding_as_expected(self, filename, expected):
357s         with xr.open_dataset(filename, mask_and_scale=False) as f:
357s             np.testing.assert_array_equal(f['test-array'][:],
expected["data"])
357s             assert f['test-array'].attrs['scale_factor'] ==
expected["scale_factor"]
357s             assert f['test-array'].attrs['_FillValue'] ==
expected["fill_value"]
357s             assert f['test-array'].dtype == expected["dtype"]
357s >           assert f["test-array"].encoding["complevel"] ==
expected["complevel"]
357s E           assert 0 == 7
357s
357s /usr/lib/python3/dist-packages/satpy/tests/writer_tests/test_cf.py:1396:
AssertionError
357s _____________ TestEncodingAttribute.test_encoding_attribute[True]
______________
357s
357s self = <satpy.tests.writer_tests.test_cf.TestEncodingAttribute
object at 0x7ff117235950>
357s scene_with_encoding = <satpy.scene.Scene object at 0x7ff0207f7250>
357s filename =
'/tmp/pytest-of-debci/pytest-0/test_encoding_attribute_True_0/test.nc'
357s expected = {'complevel': 7, 'data': [10, 20, 30], 'dtype': <class
'numpy.int8'>, 'fill_value': 3, ...}
357s
357s     def test_encoding_attribute(self, scene_with_encoding,
filename, expected):
357s         """Test 'encoding' dataset attribute."""
357s         scene_with_encoding.save_datasets(filename=filename, writer='cf')
357s >       self._assert_encoding_as_expected(filename, expected)
357s
357s /usr/lib/python3/dist-packages/satpy/tests/writer_tests/test_cf.py:1431:
357s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
357s
357s self = <satpy.tests.writer_tests.test_cf.TestEncodingAttribute
object at 0x7ff117235950>
357s filename =
'/tmp/pytest-of-debci/pytest-0/test_encoding_attribute_True_0/test.nc'
357s expected = {'complevel': 7, 'data': [10, 20, 30], 'dtype': <class
'numpy.int8'>, 'fill_value': 3, ...}
357s
357s     def _assert_encoding_as_expected(self, filename, expected):
357s         with xr.open_dataset(filename, mask_and_scale=False) as f:
357s             np.testing.assert_array_equal(f['test-array'][:],
expected["data"])
357s             assert f['test-array'].attrs['scale_factor'] ==
expected["scale_factor"]
357s             assert f['test-array'].attrs['_FillValue'] ==
expected["fill_value"]
357s             assert f['test-array'].dtype == expected["dtype"]
357s >           assert f["test-array"].encoding["complevel"] ==
expected["complevel"]
357s E           assert 0 == 7
357s
357s /usr/lib/python3/dist-packages/satpy/tests/writer_tests/test_cf.py:1396:
AssertionError



More information about the Pkg-grass-devel mailing list