MariusKlug / zapline-plus

Improvements of the ZapLine function to remove line noise from EEG/MEG data. Adds automatic detection of the number of components to remove, and chunks the data into segments to account for nonstationarities.
GNU General Public License v3.0
25 stars 9 forks source link

error in zapline function from EEGLAB list #23

Open arnodelorme opened 1 year ago

arnodelorme commented 1 year ago

Description [Description of the bug or feature Attach a link to Dropbox or Google Drive with screenshots and your data if possible.] Hi, I'm trying to use zapline plugin to remove linenoise in my dataset with a default one line for running it: EEG = clean_data_with_zapline_plus_eeglab_wrapper(EEG,struct('noisefreqs','line')) % specifying the config is optional

Steps to Reproduce

I typed EEG = clean_data_with_zapline_plus_eeglab_wrapper(EEG,struct('noisefreqs','line')) % specifying the config is optional, following the line (this is what GUI produced as well). Then I got an error in the command window.

Expected behavior: I was expecting that zapline function would work properly.

Actual behavior: This is the error message I got from this:

Undefined function 'bandpass' for input arguments of type 'single'. Error in clean_data_with_zapline_plus (line 356) data_narrowfilt = bandpass(data,[noisefreq-detectionWinsize/2 noisefreq+detectionWinsize/2],srate); Error in clean_data_with_zapline_plus_eeglab_wrapper (line 25) [EEG.data, EEG.etc.zapline.config, EEG.etc.zapline.analyticsResults, plothandles] = clean_data_with_zapline_plus(EEG.data, EEG.srate, zaplineConfig);

arnodelorme commented 1 year ago

https://github.com/sccn/eeglab/issues/698

MariusKlug commented 1 year ago

Thanks for informing! I believe this is an issue of a missing toolbox for signal processing, or a too old matlab version.