File: 0007-Increase-tolerance-to-cope-with-i386.patch

package info (click to toggle)
tomopy 1.15.3%2Bds1-1
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 16,296 kB
  • sloc: cpp: 8,205; ansic: 7,231; python: 6,628; sh: 169; makefile: 70
file content (22 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Roland Mas <lolando@debian.org>
Date: Wed, 11 Sep 2024 16:14:54 +0200
Subject: Increase tolerance to cope with i386

---
 test/test_tomopy/test_prep/test_normalize.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/test_tomopy/test_prep/test_normalize.py b/test/test_tomopy/test_prep/test_normalize.py
index 5184628..d479309 100644
--- a/test/test_tomopy/test_prep/test_normalize.py
+++ b/test/test_tomopy/test_prep/test_normalize.py
@@ -68,7 +68,8 @@ class NormalizationTestCase(unittest.TestCase):
     def test_normalize_bg(self):
         assert_allclose(
             normalize_bg(read_file('tomo.npy')),
-            read_file('normalize_bg.npy'))
+            read_file('normalize_bg.npy'),
+            rtol=1e-6)
 
     def test_normalize_nf(self):
         assert_allclose(