Skip to content

Commit

Permalink
Fix tests montage unit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackz314 committed Jun 15, 2023
1 parent ed17572 commit 3826196
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eeglabio/tests/test_epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_export_set(tmpdir, preload):
# epochs.set_annotations(annot)
temp_fname = op.join(str(tmpdir), 'test_epochs.set')
export_mne_epochs(epochs, temp_fname)
epochs_read = read_epochs_eeglab(temp_fname)
epochs_read = read_epochs_eeglab(temp_fname, montage_units='m')
assert epochs.ch_names == epochs_read.ch_names
cart_coords = np.array([d['loc'][:3]
for d in epochs.info['chs']]) # just xyz
Expand Down
2 changes: 1 addition & 1 deletion eeglabio/tests/test_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_export_set(tmpdir):
meg=True, eeg=True, ecg=True).load_data()
temp_fname = op.join(str(tmpdir), 'test_raw.set')
export_mne_raw(raw, temp_fname)
raw_read = read_raw_eeglab(temp_fname, preload=True)
raw_read = read_raw_eeglab(temp_fname, preload=True, montage_units='m')
assert raw.ch_names == raw_read.ch_names
cart_coords = np.array([d['loc'][:3] for d in raw.info['chs']]) # just xyz
cart_coords_read = np.array([d['loc'][:3] for d in raw_read.info['chs']])
Expand Down

0 comments on commit 3826196

Please sign in to comment.