Skip to content

Commit 1c74791

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f7242b6 commit 1c74791

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

mne/io/edf/tests/test_edf.py

+5-8
Original file line numberDiff line numberDiff line change
@@ -258,26 +258,23 @@ def test_edf_different_sfreqs(stim_channel):
258258
assert_allclose(data1, data2, err_msg="Data mismatch with preload")
259259
assert_allclose(times1, times2)
260260

261+
261262
@testing.requires_testing_data
262263
@pytest.mark.parametrize("stim_channel", (None, False, "auto"))
263264
def test_edf_different_sfreqs_nopreload(stim_channel):
264265
"""Test loading smaller sfreq channels without preloading"""
265-
266266
# load without preloading, then load a channel that has smaller sfreq
267267
# as other channels, produced an error, see mne-python/issues/12897
268268

269269
for i in range(1, 13):
270-
raw = read_raw_edf(
271-
input_fname=edf_reduced,
272-
verbose='error',
273-
preload=False)
270+
raw = read_raw_edf(input_fname=edf_reduced, verbose="error", preload=False)
274271

275272
# this should work for channels of all sfreq, even if larger sfreqs
276273
# are present in the file
277-
x1 = raw.get_data(picks=[f'A{i}'], return_times=False)
274+
x1 = raw.get_data(picks=[f"A{i}"], return_times=False)
278275
# load next ch, this is sometimes with a higher sometimes a lower sfreq
279-
x2 = raw.get_data([f'A{i+1}'], return_times=False)
280-
assert x1.shape==x2.shape
276+
x2 = raw.get_data([f"A{i + 1}"], return_times=False)
277+
assert x1.shape == x2.shape
281278

282279

283280
def test_edf_data_broken(tmp_path):

0 commit comments

Comments
 (0)