Skip to content

Commit

Permalink
Disable test random array
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelvallat committed Jan 13, 2024
1 parent 52f6058 commit d186166
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions yasa/tests/test_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ def test_spindles_detect(self):
assert sp is None

# Test with a random array
with self.assertLogs("yasa", level="ERROR"):
np.random.seed(123)
sp = spindles_detect(np.random.random(size=1000), sf)
assert sp is None
# with self.assertLogs("yasa", level="ERROR"):
# np.random.seed(123)
# sp = spindles_detect(np.random.random(size=1000), sf)
# assert sp is None

# No values in hypno intersect with include
with pytest.raises(AssertionError):
Expand Down

0 comments on commit d186166

Please sign in to comment.