Your message dated Wed, 10 Dec 2025 07:51:56 +0000
with message-id <[email protected]>
and subject line Bug#1122073: fixed in satpy 0.59.0-2
has caused the Debian Bug report #1122073,
regarding satpy doesn't handle NaN appropriately on riscv64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1122073: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1122073
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-satpy
Version: 0.59.0-1
Tags: patch

Hi,

As part of a request to help satpy to testing, it was discovered by Aurelien that satpy doesn't handle NaN properly and he provides a patch, see below.

Paul

-------- Forwarded Message --------
Subject: Re: Bug#1121879: release.debian.org: Help satpy migrate to testing
Date: Fri, 5 Dec 2025 19:57:31 +0100
From: Aurelien Jarno <[email protected]>
To: Paul Gevers <[email protected]>
CC: Bas Couwenberg <[email protected]>, [email protected], [email protected]

Hi,

On 2025-12-04 08:49, Paul Gevers wrote:
user [email protected]
usertag riscv64
thanks

Hi,

On 12/4/25 05:33, Bas Couwenberg wrote:
> Please help satpy migrate to testing, the autopkgtest failures on riscv64 & 
s390x are not regressions, but are not detected as such.


The package got removed from testing, so the package is considered new. For
new packages, any failure is preventing migration. I'll ignore the s390x
failure as that's a test dependency that can't be installed there
(python3-satpy is arch:all and can be installed, but not all its
Recommends). The riscv64 failure should be investigated as that seems to
point out a genuine issue (which of course can be a bad test, but then
fixing the test is the proper course of action). Adding riscv64 porters for
that.

This is indeed a real issue. The conversion of a NaN to an int is undefined. It appears to be 0 on most CPUs, but it is not the case on riscv64.

The issue is actually already known upstream:
https://github.com/pytroll/satpy/issues/2934

The following patch fixes the issue on riscv64. It also removes the warning on other architectures.

--- satpy-0.59.0.orig/satpy/enhancements/colormap.py
+++ satpy-0.59.0/satpy/enhancements/colormap.py
@@ -41,9 +41,10 @@ def lookup(img, **kwargs):
 @on_separate_bands
 @using_map_blocks
 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]

Regards
Aurelien

--
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email protected]                     http://aurel32.net

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: satpy
Source-Version: 0.59.0-2
Done: Antonio Valentino <[email protected]>

We believe that the bug you reported is fixed in the latest version of
satpy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antonio Valentino <[email protected]> (supplier of updated satpy 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


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

Format: 1.8
Date: Wed, 03 Dec 2025 20:49:13 +0000
Source: satpy
Architecture: source
Version: 0.59.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian GIS Project <[email protected]>
Changed-By: Antonio Valentino <[email protected]>
Closes: 1122073
Changes:
 satpy (0.59.0-2) unstable; urgency=medium
 .
   * debian/patches:
     - New 0010-Fix-test-failure-on-riscv64.patch (Closes: #1122073).
   * debian/tests:
     - Do not run autopkgtests on s390x. Some of the dependencies
       are not available on this platform.
Checksums-Sha1:
 6f9c976a9c075bdeb22b4febbba7e35176b91531 3330 satpy_0.59.0-2.dsc
 c36be2ef9a21b53542a3d3bdd4d30057a7bda49a 4787952 satpy_0.59.0-2.debian.tar.xz
 e8bf3254cc35678c6108556630071d5477e5d171 23591 satpy_0.59.0-2_source.buildinfo
Checksums-Sha256:
 3033cfb3c94497434b72419b60c880ef0d5482a7de59bc363b6da3408c1243ff 3330 
satpy_0.59.0-2.dsc
 a88c9f163b6d345ab8e7789396c9087ecce1210197759141a058a81df61c6d0e 4787952 
satpy_0.59.0-2.debian.tar.xz
 3f839f9632bb61ed1e20c99728acfff43774841ad9c2f354c5ea3e0a44d4ae6a 23591 
satpy_0.59.0-2_source.buildinfo
Files:
 5da43086d9f35b92f589b31292d9dc80 3330 python optional satpy_0.59.0-2.dsc
 c43f996ec0cd7312ee662355ae4064e2 4787952 python optional 
satpy_0.59.0-2.debian.tar.xz
 13b9f4696ff912b0fff3f5da344922ac 23591 python optional 
satpy_0.59.0-2_source.buildinfo

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

iQJRBAEBCgA7FiEEO3DyCaX/1okDxHLF6/SKslePmBIFAmk5IaUdHGFudG9uaW8u
dmFsZW50aW5vQHRpc2NhbGkuaXQACgkQ6/SKslePmBK+FQ//VoOvo1cYGPJdBW9T
x4lmjK+JKAyUdyo/sZ7L9p90WWALBDd7htYg9ngzkKNnWxsPcOR2zxF8F2KHJaI2
K/i8h1Kx3b+7+1wChdOrJgZaYuWTogru1Zp08u1dTQPDudpjrEO72YQIp5t6oejk
TUBVuk+TRnVw78sXqLT6ZB0FRD2h0tzuqYIgt41URP/5uD5WLajPJAig5ulg8vHo
Z+RdvbaaCcJt+n9nidatYSrlbatFThiJrWKnrhHW8TikxRcaGwwKGiAdSxZBF6XP
GzJ5VkoFvo4nn7OjJl1aU79Vte2Nw61ea2orGEi+HtZsCSMgF4R1lSZe5x7PB47J
mQu94TTTsApVliQYJnAnJO0drfLLaO6BBTG/9SgS3VQcgnQsABTLrQ6Oz+V/HsKo
8dqEYn0q5KaDmhWIsl6afhb4xEMm7/2OS1wxdLR31B7nYpjCQv3h5TiL9u95EyuE
/9gQleW20KTnfdLF/Na8U9izfD6jt3umdZt6CSArVs9fNcjR2dOjIrkOcWM1Wuqs
EiKQWKib3Hqacrle0Qoj74JsqDgL0zSJn3nfcaSiweYbvPqMa2xks+/riEl9/fut
2U3Op4uX50pcApvqyGHFLmvwxBKGfBYmAt4IpISELQ65kT9ymhEp5w/yPOR5UphS
J0Q/3006UExW9ab6j0fVn73BZcw=
=xhAz
-----END PGP SIGNATURE-----

Attachment: pgpx1mPopa3eR.pgp
Description: PGP signature


--- End Message ---
_______________________________________________
Pkg-grass-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to