Skip to content
Snippets Groups Projects
Commit 20df5dac authored by Florent Jaillet's avatar Florent Jaillet
Browse files

Modifying test_instfreqplot to solve issue #11 and Debian bug 861091

parent abcaa649
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -107,8 +107,9 @@ class TestInstfreqplot(unittest.TestCase): ...@@ -107,8 +107,9 @@ class TestInstfreqplot(unittest.TestCase):
for inputs, outputs in data: for inputs, outputs in data:
out = instfreqplot(**inputs) out = instfreqplot(**inputs)
msg = ('Wrong value in output of instfreqplot with inputs ' + msg = ('Wrong value in output of instfreqplot with inputs ' +
str(inputs)) str(inputs) +
assert_allclose(out, outputs[0], rtol=2e-15, err_msg=msg) '\nMaximal error: ' + str(np.max(np.abs(outputs[0] - out))))
assert_allclose(out, outputs[0], atol=1e-13, err_msg=msg)
if __name__ == '__main__': if __name__ == '__main__':
......
  • Florent Jaillet @florent.jaillet

    mentioned in issue #11 (closed)

    By Florent Jaillet on 2017-06-29T07:59:49 (imported from GitLab project)

    ·

    mentioned in issue #11 (closed)

    By Florent Jaillet on 2017-06-29T07:59:49 (imported from GitLab project)

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment