Skip to content

Commit baebd12

Browse files
committed
fix test
1 parent a53d676 commit baebd12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mne_bids/tests/test_write.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3783,7 +3783,9 @@ def test_preload(_bids_validate, tmp_path, format, ch_type):
37833783
bids_path = _bids_path.copy().update(root=bids_root)
37843784
sfreq = 1024.0
37853785
info = mne.create_info(["ch1", "ch2"], sfreq, ch_type)
3786-
raw = mne.io.RawArray(np.zeros((2, 100), dtype=np.float32), info)
3786+
data = np.zeros((2, 100), dtype=np.float32)
3787+
data[0, 5] = 1.0 # avoid physical_min == physical_max
3788+
raw = mne.io.RawArray(data, info)
37873789
raw.orig_format = "single"
37883790
raw.info["line_freq"] = 60
37893791
write_raw_bids(

0 commit comments

Comments
 (0)