Skip to content

Commit 1a50295

Browse files
authored
fix CI after upstream changes (#1071)
1 parent 6624276 commit 1a50295

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mne_bids/tests/test_write.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
'Setting to None.',
8585
cnt_warning2='ignore:.*Could not define the number of bytes automatically.'
8686
' Defaulting to 2.',
87+
cnt_warning3='ignore:.*Coordinate frame could not be inferred.*',
8788
no_hand='ignore:.*Not setting subject handedness.:RuntimeWarning:mne',
8889
no_montage=r'ignore:Not setting position of.*channel found in '
8990
r'montage.*:RuntimeWarning:mne',
@@ -3234,6 +3235,7 @@ def test_convert_meg_formats(dir_name, format, fname, reader, tmp_path):
32343235
warning_str['channel_unit_changed'],
32353236
warning_str['cnt_warning1'],
32363237
warning_str['cnt_warning2'],
3238+
warning_str['cnt_warning3'],
32373239
warning_str['no_hand'],
32383240
)
32393241
@testing.requires_testing_data

mne_bids/write.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def _channels_tsv(raw, fname, overwrite=False):
125125
ch_type.append(map_chs[_channel_type])
126126
description.append(map_desc[_channel_type])
127127
low_cutoff, high_cutoff = (raw.info['highpass'], raw.info['lowpass'])
128-
if raw._orig_units is not None:
128+
if raw._orig_units:
129129
units = [raw._orig_units.get(ch, 'n/a') for ch in raw.ch_names]
130130
else:
131131
units = [_unit2human.get(ch_i['unit'], 'n/a')

0 commit comments

Comments
 (0)