Nilesh Patra pushed to branch master at Debian Med / python-skbio
Commits: 8f0a0b73 by Nilesh Patra at 2022-12-21T13:44:30+05:30 Add patch to fix FTBFS (Closes: #1026474) - - - - - f7dee501 by Nilesh Patra at 2022-12-21T13:44:51+05:30 Upload to unstable - - - - - bdebac1e by Nilesh Patra at 2022-12-21T14:16:40+05:30 Merge branch 'debian-0.5.6-7' - - - - - 2419da72 by Nilesh Patra at 2022-12-21T14:18:28+05:30 Update d/p/s - - - - - 3 changed files: - debian/changelog - + debian/patches/precision_bug.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -18,6 +18,13 @@ python-skbio (0.5.7-1) UNRELEASED; urgency=medium -- Étienne Mollier <[email protected]> Sat, 03 Dec 2022 23:25:19 +0100 +python-skbio (0.5.6-7) unstable; urgency=medium + + * Team Upload. + * Add patch to fix FTBFS (Closes: #1026474) + + -- Nilesh Patra <[email protected]> Wed, 21 Dec 2022 13:44:41 +0530 + python-skbio (0.5.6-6) unstable; urgency=medium * Team upload ===================================== debian/patches/precision_bug.patch ===================================== @@ -0,0 +1,28 @@ +Description: Do not match exact values in pielou_e due to float round point precision, rather + check in close range +Author: Nilesh Patra <[email protected]> +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026474 +Last-Update: 2022-12-21 +--- a/skbio/diversity/alpha/tests/test_base.py ++++ b/skbio/diversity/alpha/tests/test_base.py +@@ -11,6 +11,7 @@ + + import numpy as np + import numpy.testing as npt ++from math import isclose + + from skbio import TreeNode + from skbio.diversity.alpha import ( +@@ -215,9 +216,9 @@ + + self.assertAlmostEqual(pielou_e(self.counts), 0.92485490560) + +- self.assertEqual(pielou_e([1, 1]), 1.0) +- self.assertEqual(pielou_e([1, 1, 1, 1]), 1.0) +- self.assertEqual(pielou_e([1, 1, 1, 1, 0, 0]), 1.0) ++ assert isclose(pielou_e([1, 1]), 1.0, abs_tol=1e-3) ++ assert isclose(pielou_e([1, 1, 1, 1]), 1.0, abs_tol=1e-3) ++ assert isclose(pielou_e([1, 1, 1, 1, 0, 0]), 1.0, abs_tol=1e-3) + + # Examples from + # http://ww2.mdsg.umd.edu/interactive_lessons/biofilm/diverse.htm#3 ===================================== debian/patches/series ===================================== @@ -2,3 +2,4 @@ mathjax-path 0002-use-libsww-as-library-not-embedded-src.patch no_privacy_breach_logo.patch local_inventory +precision_bug.patch View it on GitLab: https://salsa.debian.org/med-team/python-skbio/-/compare/b68aca0dfebe9d3fd8edf968c633de3192f807f5...2419da72a73017d750a9f96d315b6659fd9c20d3 -- View it on GitLab: https://salsa.debian.org/med-team/python-skbio/-/compare/b68aca0dfebe9d3fd8edf968c633de3192f807f5...2419da72a73017d750a9f96d315b6659fd9c20d3 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
