From fb1b1e1a7033fcb9137470c26551dfbd5423aa4a Mon Sep 17 00:00:00 2001
From: Florent Jaillet <florent.jaillet@lif.univ-mrs.fr>
Date: Thu, 29 Jun 2017 14:04:11 +0200
Subject: [PATCH] Improving error message in test_instfreqplot

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

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