[Git][debian-gis-team/pyninjotiff][master] Fix 0001-Fix-floating-point-comparison.patch
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sat Dec 9 09:51:24 GMT 2023
Antonio Valentino pushed to branch master at Debian GIS Project / pyninjotiff
Commits:
25cdcbc7 by Antonio Valentino at 2023-12-09T09:51:09+00:00
Fix 0001-Fix-floating-point-comparison.patch
- - - - -
1 changed file:
- debian/patches/0001-Fix-floating-point-comparison.patch
Changes:
=====================================
debian/patches/0001-Fix-floating-point-comparison.patch
=====================================
@@ -8,7 +8,7 @@ Forwarded: https://github.com/pytroll/pyninjotiff/pull/33
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pyninjotiff/tests/test_ninjotiff.py b/pyninjotiff/tests/test_ninjotiff.py
-index 2d4f224..fce6386 100644
+index 2d4f224..870e75b 100644
--- a/pyninjotiff/tests/test_ninjotiff.py
+++ b/pyninjotiff/tests/test_ninjotiff.py
@@ -519,7 +519,10 @@ def test_write_rgb_tb():
@@ -16,7 +16,7 @@ index 2d4f224..fce6386 100644
if key in ['datetime', '40002', '40003', '40006']:
continue
- assert(val == read_tags[key].value)
-+ if isinstance(val, float) or (hasattr(val, "dtype") and val.dtype.kinf == "f"):
++ if np.asarray(val).dtype.kind == "f":
+ np.testing.assert_allclose(val, read_tags[key].value)
+ else:
+ assert(val == read_tags[key].value)
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyninjotiff/-/commit/25cdcbc76fe13e648ed6e2c2dcff97d4e3f068a2
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyninjotiff/-/commit/25cdcbc76fe13e648ed6e2c2dcff97d4e3f068a2
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/20231209/a1e908fb/attachment.htm>
More information about the Pkg-grass-devel
mailing list