Commit fb1b1e1a authored by Florent Jaillet's avatar Florent Jaillet
Browse files

Improving error message in test_instfreqplot

parent c2f129fc
Pipeline #294 passed with stage
in 3 minutes and 40 seconds
......@@ -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) +
'\nMaximal error: ' + str(np.max(np.abs(outputs[0] - out))))
assert_allclose(out, outputs[0], atol=1e-13, err_msg=msg)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment