@@ -258,26 +258,23 @@ def test_edf_different_sfreqs(stim_channel):
258
258
assert_allclose (data1 , data2 , err_msg = "Data mismatch with preload" )
259
259
assert_allclose (times1 , times2 )
260
260
261
+
261
262
@testing .requires_testing_data
262
263
@pytest .mark .parametrize ("stim_channel" , (None , False , "auto" ))
263
264
def test_edf_different_sfreqs_nopreload (stim_channel ):
264
265
"""Test loading smaller sfreq channels without preloading"""
265
-
266
266
# load without preloading, then load a channel that has smaller sfreq
267
267
# as other channels, produced an error, see mne-python/issues/12897
268
268
269
269
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 )
274
271
275
272
# this should work for channels of all sfreq, even if larger sfreqs
276
273
# 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 )
278
275
# 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
281
278
282
279
283
280
def test_edf_data_broken (tmp_path ):
0 commit comments