Antonio Valentino pushed to branch master at Debian GIS Project / satpy
Commits: 9a07ab25 by Antonio Valentino at 2025-12-06T12:33:08+00:00 New 0010-Fix-test-failure-on-riscv64.patch - - - - - 3ff5ba6f by Antonio Valentino at 2025-12-06T12:34:25+00:00 Do not run autopkgtests on s390x - - - - - 3f7ce66a by Antonio Valentino at 2025-12-06T12:34:30+00:00 Set distribution to unstable - - - - - 4 changed files: - debian/changelog - + debian/patches/0010-Fix-test-failure-on-riscv64.patch - debian/patches/series - + debian/tests/autopkgtest-pkg-pybuild.conf Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,13 @@ +satpy (0.59.0-2) unstable; urgency=medium + + * debian/patches: + - New 0010-Fix-test-failure-on-riscv64.patch. + * debian/tests: + - Do not run autopkgtests on s390x. Some of the dependencies + are not available on this platform. + + -- Antonio Valentino <[email protected]> Wed, 03 Dec 2025 20:49:13 +0000 + satpy (0.59.0-1) unstable; urgency=medium [ Bas Couwenberg ] ===================================== debian/patches/0010-Fix-test-failure-on-riscv64.patch ===================================== @@ -0,0 +1,27 @@ +From: Antonio Valentino <[email protected]> +Date: Sat, 6 Dec 2025 12:13:57 +0000 +Subject: Fix test failure on riscv64 + +Patch kindly provided by Aurelien Jarno in +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1121879 + +Forwarded: https://github.com/pytroll/satpy/issues/2934 +--- + satpy/enhancements/colormap.py | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/satpy/enhancements/colormap.py b/satpy/enhancements/colormap.py +index b079aec..84f60b5 100644 +--- a/satpy/enhancements/colormap.py ++++ b/satpy/enhancements/colormap.py +@@ -43,7 +43,9 @@ def lookup(img, **kwargs): + def _lookup_table(band_data, luts=None, index=-1): + # NaN/null values will become 0 + lut = luts[:, index] if len(luts.shape) == 2 else luts +- band_data = band_data.clip(0, lut.size - 1).astype(np.uint8) ++ band_data = band_data.clip(0, lut.size - 1) ++ # Convert to uint8, with NaN/null values changed into 0 ++ band_data = np.nan_to_num(band_data).astype(np.uint8) + return lut[band_data] + + ===================================== debian/patches/series ===================================== @@ -7,3 +7,4 @@ 0007-No-numba.patch 0008-Fix-tlefile-import.patch 0009-Reduce-disk-footprint-for-tests.patch +0010-Fix-test-failure-on-riscv64.patch ===================================== debian/tests/autopkgtest-pkg-pybuild.conf ===================================== @@ -0,0 +1 @@ +architecture=!s390x View it on GitLab: https://salsa.debian.org/debian-gis-team/satpy/-/compare/f6301b806e4277f89fe5a98ac66e4af42638755e...3f7ce66a7f35011aab4b385d5003025ad410f0c6 -- View it on GitLab: https://salsa.debian.org/debian-gis-team/satpy/-/compare/f6301b806e4277f89fe5a98ac66e4af42638755e...3f7ce66a7f35011aab4b385d5003025ad410f0c6 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ Pkg-grass-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel
