Skip to content

Commit 7a20c9e

Browse files
committed
fix test
1 parent 3ce9fa2 commit 7a20c9e

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
@@ -3778,7 +3778,9 @@ def test_preload(_bids_validate, tmp_path, format, ch_type):
37783778
bids_path = _bids_path.copy().update(root=bids_root)
37793779
sfreq = 1024.0
37803780
info = mne.create_info(["ch1", "ch2"], sfreq, ch_type)
3781-
raw = mne.io.RawArray(np.zeros((2, 100), dtype=np.float32), info)
3781+
data = np.zeros((2, 100), dtype=np.float32)
3782+
data[0, 5] = 1.0 # avoid physical_min == physical_max
3783+
raw = mne.io.RawArray(data, info)
37823784
raw.orig_format = "single"
37833785
raw.info["line_freq"] = 60
37843786
write_raw_bids(

0 commit comments

Comments
 (0)