Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Intermittently failing unit test for multitaper PSD #528

Closed
rjurkus opened this issue Nov 18, 2022 · 0 comments · Fixed by #529
Closed

[Bug] Intermittently failing unit test for multitaper PSD #528

rjurkus opened this issue Nov 18, 2022 · 0 comments · Fixed by #529

Comments

@rjurkus
Copy link
Collaborator

rjurkus commented Nov 18, 2022

Describe the bug

Occasionally, the test_multitaper_psd_behavior fails.

To Reproduce

  1. Run the test_spectral.py multiple times
======================================================================
FAIL: test_multitaper_psd_behavior (elephant.test.test_spectral.MultitaperPSDTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jurkus/repositories/elephant/elephant/test/test_spectral.py", line 216, in test_multitaper_psd_behavior
    self.assertEqual(freqs[psd.argmax()], signal_freq)
AssertionError: array(99.8) * Hz != 100.0

----------------------------------------------------------------------
Ran 24 tests in 1.365s

FAILED (failures=1)

Expected behavior
The test should always pass.

Environment

  • OS (e.g., Linux): Ubuntu 18.04.6 LTS
  • How you installed elephant (conda, pip, source): pip, source
  • Python version: 3.7.3
  • neo python package version: 0.10.0
  • elephant python package version: 0.12.0b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant