From 20df5dac7ba1b1fddb0914361d943e415cbcb6e5 Mon Sep 17 00:00:00 2001
From: Florent Jaillet <florent.jaillet@lif.univ-mrs.fr>
Date: Thu, 29 Jun 2017 09:05:54 +0200
Subject: [PATCH] Modifying test_instfreqplot to solve issue #11 and Debian bug
 861091

---
 ltfatpy/tests/gabor/test_instfreqplot.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ltfatpy/tests/gabor/test_instfreqplot.py b/ltfatpy/tests/gabor/test_instfreqplot.py
index 0cf7e3a..1a78117 100644
--- a/ltfatpy/tests/gabor/test_instfreqplot.py
+++ b/ltfatpy/tests/gabor/test_instfreqplot.py
@@ -107,8 +107,9 @@ class TestInstfreqplot(unittest.TestCase):
         for inputs, outputs in data:
             out = instfreqplot(**inputs)
             msg = ('Wrong value in output of instfreqplot with inputs ' +
-                   str(inputs))
-            assert_allclose(out, outputs[0], rtol=2e-15, err_msg=msg)
+                   str(inputs) +
+                   '\nMaximal error: ' + str(np.max(np.abs(outputs[0] - out))))
+            assert_allclose(out, outputs[0], atol=1e-13, err_msg=msg)
 
 
 if __name__ == '__main__':
-- 
GitLab