[Git][debian-gis-team/pysal][experimental] Add patch to fix test failure with newer numpy.

Bas Couwenberg gitlab at salsa.debian.org
Sun Jan 12 13:20:25 GMT 2020



Bas Couwenberg pushed to branch experimental at Debian GIS Project / pysal


Commits:
f21ceb97 by Bas Couwenberg at 2020-01-12T11:31:39+01:00
Add patch to fix test failure with newer numpy.

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/series
- + debian/patches/test_ComputeAll.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -5,6 +5,7 @@ pysal (2.1.0-1) UNRELEASED; urgency=medium
   * Bump Standards-Version to 4.4.1, no changes.
   * Add python3-{deprecated,descartes,tqdm} to (build) dependencies.
   * Drop Name field from upstream metadata.
+  * Add patch to fix test failure with newer numpy.
 
  -- Bas Couwenberg <sebastic at debian.org>  Mon, 29 Jul 2019 19:59:17 +0200
 


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+test_ComputeAll.patch


=====================================
debian/patches/test_ComputeAll.patch
=====================================
@@ -0,0 +1,31 @@
+Description: Fix test failure with newer numpy.
+Author: Sergio Rey
+Origin: https://github.com/pysal/pysal/commit/7188d156558b0f159920e2aece610056f82c7972
+
+--- a/pysal/explore/segregation/tests/test_compute_all.py
++++ b/pysal/explore/segregation/tests/test_compute_all.py
+@@ -13,13 +13,13 @@ class ComputeAll_Tester(unittest.TestCas
+         res = ComputeAllAspatialSegregation(s_map, 'HISP_', 'TOT_POP')
+         np.testing.assert_almost_equal(np.array(res.computed['Value']), np.array([0.32184656, 0.43506511, 0.09459761, 0.15079259, 0.76803845,
+         0.23196155, 0.13768748, 0.32141961, 0.29520516, 0.09164042,
+-        0.31074587, 0.42179274]))
++        0.31074587, 0.42179274]), decimal = 3)
+     
+         np.random.seed(123)
+         res = ComputeAllSpatialSegregation(s_map, 'HISP_', 'TOT_POP')
+         np.testing.assert_almost_equal(np.array(res.computed['Value']), np.array([ 0.26119743,  0.68914224,  0.00518929,  0.85128245,  0.80449692,
+        -0.11194178,  0.00909563,  0.12733821,  0.83965834,  0.15621625,
+-        0.22847334,  1.00266235,  0.26676264,  0.31117181]))
++        0.22847334,  1.00266235,  0.26676264,  0.31117181]), decimal = 3)
+     
+         np.random.seed(123)
+         res = ComputeAllSegregation(s_map, 'HISP_', 'TOT_POP')
+@@ -28,7 +28,7 @@ class ComputeAll_Tester(unittest.TestCas
+         0.31074587,  0.42179274,  0.26119743,  0.68914224,  0.00518929,
+         0.85128245,  0.80449692, -0.11194178,  0.00909563,  0.12733821,
+         0.83965834,  0.15621625,  0.22847334,  1.00266235,  0.26676264,
+-        0.31117181]))
++        0.31117181]), decimal = 3)
+ 
+ if __name__ == '__main__':
+     unittest.main()



View it on GitLab: https://salsa.debian.org/debian-gis-team/pysal/commit/f21ceb9762797cdb1fbe9c475b6cd06206d13556

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pysal/commit/f21ceb9762797cdb1fbe9c475b6cd06206d13556
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/20200112/7010b8d9/attachment-0001.html>


More information about the Pkg-grass-devel mailing list