8000 Add missing test coverage · tsbinns/mne-python@1c02b40 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c02b40

Browse files
committed
Add missing test coverage
1 parent 5ad9bd5 commit 1c02b40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mne/time_frequency/tests/test_tfr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,8 @@ def test_epochs_compute_tfr_stockwell(epochs, freqs, return_itc):
15381538
def test_epochs_compute_tfr_multitaper_complex_phase(epochs, output):
15391539
"""Test Epochs.compute_tfr(output="complex"/"phase")."""
15401540
tfr = epochs.compute_tfr("multitaper", freqs_linspace, output=output)
1541-
assert len(tfr.shape) == 5
1541+
assert len(tfr.shape) == 5 # epoch x channel x taper x freq x time
1542+
assert tfr.weights.shape == tfr.shape[2:4] # check weights and coeffs shapes match
15421543

15431544

15441545
@pytest.mark.parametrize("copy", (False, True))

0 commit comments

Comments
 (0)
0