[Git][debian-gis-team/python-geotiepoints][master] 2 commits: Compatibility with scipy 1.13.x
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sun Jul 21 13:45:16 BST 2024
Antonio Valentino pushed to branch master at Debian GIS Project / python-geotiepoints
Commits:
d0284175 by Antonio Valentino at 2024-07-21T11:34:44+00:00
Compatibility with scipy 1.13.x
- - - - -
8f554482 by Antonio Valentino at 2024-07-21T11:36:26+00:00
Set distribution to unstable
- - - - -
2 changed files:
- debian/changelog
- debian/patches/0002-Compatibility-with-numpy-2.patch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+python-geotiepoints (1.7.4-2) unstable; urgency=medium
+
+ * debian/patches:
+ - Update 0002-Compatibility-with-numpy-2.patch to ensure
+ compatibility with scipy 1.13.x (Closes: #1075930).
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it> Sun, 21 Jul 2024 11:36:15 +0000
+
python-geotiepoints (1.7.4-1) unstable; urgency=medium
* New upstream release.
=====================================
debian/patches/0002-Compatibility-with-numpy-2.patch
=====================================
@@ -4,20 +4,23 @@ Subject: Compatibility with numpy < 2
Forwarded: not-needed
---
- geotiepoints/tests/test_interpolator.py | 14 ++++++++++----
+ geotiepoints/tests/test_interpolator.py | 17 +++++++++++++----
pyproject.toml | 2 +-
- 2 files changed, 11 insertions(+), 5 deletions(-)
+ 2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/geotiepoints/tests/test_interpolator.py b/geotiepoints/tests/test_interpolator.py
-index 567e686..9f67a51 100644
+index 567e686..55bd646 100644
--- a/geotiepoints/tests/test_interpolator.py
+++ b/geotiepoints/tests/test_interpolator.py
-@@ -50,6 +50,12 @@ TIES_EXP1 = np.array([[-2.00000000e+00, -4.00000000e-01, 3.60000000e+00,
+@@ -50,6 +50,15 @@ TIES_EXP1 = np.array([[-2.00000000e+00, -4.00000000e-01, 3.60000000e+00,
2.02000000e+01]])
+if np.__version__[0] < "2":
+ CUBIC_LEGACY = "cubic"
++ import scipy
++ if scipy.__version__.split(".")[:2] >= ["1", "13"]:
++ CUBIC_LEGACY = "cubic_legacy"
+else:
+ CUBIC_LEGACY = "cubic_legacy"
+
@@ -25,7 +28,7 @@ index 567e686..9f67a51 100644
class TestInterpolator(unittest.TestCase):
"""Test the interpolator."""
-@@ -349,12 +355,12 @@ class TestSingleGridInterpolator:
+@@ -349,12 +358,12 @@ class TestSingleGridInterpolator:
fine_x = np.arange(16)
fine_y = np.arange(32)
@@ -40,7 +43,7 @@ index 567e686..9f67a51 100644
np.testing.assert_allclose(res, self.expected, atol=2e-9)
@pytest.mark.parametrize("chunks, expected_chunks", [(10, (10, 10)),
-@@ -369,7 +375,7 @@ class TestSingleGridInterpolator:
+@@ -369,7 +378,7 @@ class TestSingleGridInterpolator:
with mock.patch.object(grid_interpolator,
"interpolate_numpy",
wraps=grid_interpolator.interpolate_numpy) as interpolate:
@@ -49,7 +52,7 @@ index 567e686..9f67a51 100644
assert not interpolate.called
assert isinstance(res, da.Array)
-@@ -395,5 +401,5 @@ class TestSingleGridInterpolator:
+@@ -395,5 +404,5 @@ class TestSingleGridInterpolator:
fine_x = np.arange(16)
fine_y = np.arange(32)
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-geotiepoints/-/compare/6091c44da116a3b178c0219b76460fd3bc97af0b...8f5544828dbd080f275ed8e6ca424d072c04033f
--
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-geotiepoints/-/compare/6091c44da116a3b178c0219b76460fd3bc97af0b...8f5544828dbd080f275ed8e6ca424d072c04033f
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/20240721/e5d86480/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list