[Git][debian-gis-team/satpy][master] 3 commits: New 0010-Fix-test-failure-on-riscv64.patch
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sat Dec 6 15:19:38 GMT 2025
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 <antonio.valentino at tiscali.it> 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 <antonio.valentino at tiscali.it>
+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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20251206/0e378591/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list