Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ad691a

Browse files
committed
allowing to provice channel labels for interpolation
1 parent e147716 commit 7ad691a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/eegprep/eeg_interp.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# to do, look at line 83 and 84 and try to see if the MATLAB array output match. Run code side by side.
33

44
# EEG = pop_loadset('data/eeglab_data_tmp.set');
5-
# EEG = eeg_interp(EEG, [1, 2, 3], 'spherical');
5+
# EEG = eeg_interp(EEG, [1, 2, 3], 'spherical'); % or EEG = eeg_interp(EEG, {'Fp1' 'Fp2' 'F7'}, 'spherical');
66
# pop_save(EEG, 'data/eeglab_data_tmp_out_matlab.set');
77

88
import numpy as np
@@ -228,7 +228,8 @@ def test_eeg_interp():
228228
from eegprep import pop_loadset
229229
# EEG = pop_loadset('../data/eeglab_data_tmp.set')
230230
EEG = pop_loadset(os.path.join(data_path, 'eeglab_data_tmp.set'))
231-
EEG = eeg_interp(EEG, [0, 1, 2], method='spherical')
231+
# EEG = eeg_interp(EEG, [0, 1, 2], method='spherical')
232+
EEG = eeg_interp(EEG, ['Fp1','Fp2','F7'], method='spherical')
232233
EEG2 = pop_loadset(os.path.join(data_path, 'eeglab_data_tmp_out_matlab.set'));
233234
# eeg_compare(EEG, EEG2)
234235

0 commit comments

Comments
 (0)