Skip to content

Commit 4ea3c9a

Browse files
[ENH] Use numpy assert array equal in test_multitaper_cohere_perfect_cohere (#573)
* use numpy assert_array_equal for unit test * fix issue with element-wise multiplication of ndarrays and np.complex128 by casting to np.complex128 * skip unit test for numpy 1.25.0 and 1.25.1
1 parent af4a0a4 commit 4ea3c9a

File tree

4 files changed

+113
-107
lines changed

4 files changed

+113
-107
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ venv/
2020
env/
2121
.pytest_cache/
2222
**/*/__pycache__
23+
*.vscode
2324

2425
# Compiled source #
2526
###################

elephant/spectral.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ def welch_coherence(signal_i, signal_j, n_segments=8, len_segment=None,
12751275
12761276
>>> coherency.flatten()
12771277
array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.])
1278-
>>> phase_lag.flatten()
1278+
>>> phase_lag.flatten() # doctest: +SKIP
12791279
array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) * rad
12801280
12811281
"""

0 commit comments

Comments
 (0)