[Git][debian-gis-team/pyresample][master] New 0006-Floating-point-comparison.patch

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Sat Sep 9 11:58:31 BST 2023



Antonio Valentino pushed to branch master at Debian GIS Project / pyresample


Commits:
f99e3a50 by Antonio Valentino at 2023-09-09T10:58:17+00:00
New 0006-Floating-point-comparison.patch

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/0006-Floating-point-comparison.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,8 +1,13 @@
 pyresample (1.27.1-3) UNRELEASED; urgency=medium
 
+  [ Bas Couwenberg ]
   * Team upload.
   * Override dh_numpy3 to fix unused substitution variable.
 
+  [ Antonio Valentino ]
+  * debian/patches:
+    - New 0006-Floating-point-comparison.patch.
+
  -- Bas Couwenberg <sebastic at debian.org>  Sat, 09 Sep 2023 12:04:10 +0200
 
 pyresample (1.27.1-2) unstable; urgency=medium


=====================================
debian/patches/0006-Floating-point-comparison.patch
=====================================
@@ -0,0 +1,26 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Sat, 9 Sep 2023 10:52:32 +0000
+Subject: Floating point comparison
+
+---
+ pyresample/test/test_bilinear.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/pyresample/test/test_bilinear.py b/pyresample/test/test_bilinear.py
+index d3168dd..e95d81c 100644
+--- a/pyresample/test/test_bilinear.py
++++ b/pyresample/test/test_bilinear.py
+@@ -308,11 +308,11 @@ class TestNumpyBilinear(unittest.TestCase):
+         # Sample from data1
+         res = get_sample_from_bil_info(self.data1.ravel(), t__, s__,
+                                        input_idxs, idx_arr)
+-        self.assertEqual(res.ravel()[5], 1.)
++        np.testing.assert_allclose(res.ravel()[5], 1.)
+         # Sample from data2
+         res = get_sample_from_bil_info(self.data2.ravel(), t__, s__,
+                                        input_idxs, idx_arr)
+-        self.assertEqual(res.ravel()[5], 2.)
++        np.testing.assert_allclose(res.ravel()[5], 2.)
+         # Reshaping
+         res = get_sample_from_bil_info(self.data2.ravel(), t__, s__,
+                                        input_idxs, idx_arr,


=====================================
debian/patches/series
=====================================
@@ -3,3 +3,4 @@
 0003-Fix-mathjax-path.patch
 0004-Versioneer-path.patch
 0005-Fix-privacy-breachs.patch
+0006-Floating-point-comparison.patch



View it on GitLab: https://salsa.debian.org/debian-gis-team/pyresample/-/commit/f99e3a50225ee058866f8aff3d1f57ea9a588d4d

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyresample/-/commit/f99e3a50225ee058866f8aff3d1f57ea9a588d4d
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/20230909/f0fee925/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list