Antonio Valentino pushed to branch master at Debian GIS Project / pyresample
Commits: 3fa40ad8 by Antonio Valentino at 2022-11-25T07:07:22+00:00 Fix test failure on 32it architectures - - - - - f0f7062d by Antonio Valentino at 2022-11-25T07:07:47+00:00 Set distribution to unstable - - - - - 3 changed files: - debian/changelog - + debian/patches/0005-Relax-accuracy-for-legacy-data-test.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,11 @@ +pyresample (1.26.0-2) unstable; urgency=medium + + * debian/patches: + - new 0005-Relax-accuracy-for-legacy-data-test.patch. + Fix test failure on 32bit architectures. + + -- Antonio Valentino <[email protected]> Fri, 25 Nov 2022 07:07:27 +0000 + pyresample (1.26.0-1) unstable; urgency=medium * New upstream release. ===================================== debian/patches/0005-Relax-accuracy-for-legacy-data-test.patch ===================================== @@ -0,0 +1,23 @@ +From: Antonio Valentino <[email protected]> +Date: Fri, 25 Nov 2022 07:04:14 +0000 +Subject: Relax accuracy for legacy data test + +--- + pyresample/test/test_dask_ewa.py | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/pyresample/test/test_dask_ewa.py b/pyresample/test/test_dask_ewa.py +index 94f55c3..9958ff3 100644 +--- a/pyresample/test/test_dask_ewa.py ++++ b/pyresample/test/test_dask_ewa.py +@@ -342,7 +342,9 @@ class TestDaskEWAResampler: + maximum_weight_mode=maximum_weight_mode) + legacy_arr = legacy_data.compute() + +- np.testing.assert_allclose(new_arr, legacy_arr) ++ import sys ++ rtol = 1e-7 if sys.maxsize > 2**32 else 1e-4 ++ np.testing.assert_allclose(new_arr, legacy_arr, rtol=rtol) + + @pytest.mark.parametrize( + ('input_shape', 'input_dims', 'as_np'), ===================================== debian/patches/series ===================================== @@ -2,3 +2,4 @@ 0002-Skip-test-on-deprecated-basemap.patch 0003-Fix-mathjax-path.patch 0004-Versioneer-path.patch +0005-Relax-accuracy-for-legacy-data-test.patch View it on GitLab: https://salsa.debian.org/debian-gis-team/pyresample/-/compare/c80962ac07f73d4bdbba00be283ae0e369b8e2ae...f0f7062d5f7df09db59daf445a960cae4adeba5e -- View it on GitLab: https://salsa.debian.org/debian-gis-team/pyresample/-/compare/c80962ac07f73d4bdbba00be283ae0e369b8e2ae...f0f7062d5f7df09db59daf445a960cae4adeba5e 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
