External Email - Use Caution
Hi, everyone.
I try to do remove artifacts from free available EEG data (from PHYSIONET).
For entire dataset, it working well by using the following code.
from mne.preprocessing import ICA, create_ecg_epochs
raw=mne.io.read_raw_edf(r'C:\Users\shash\OneDrive\Desktop\desktop\SC4001E0-PSG.edf',
preload=True)
raw_tmp = raw.copy()
ica = mne.preprocessing.ICA(method="extended-infomax", random_state=1)
ica.fit(raw_tmp)
This procedure working only for ".edf" format file
Same thing I try to do it for single channel data that were taken into
another variable (let say in another format file like excel or text) I am
getting a divide by zero error.
Can anyone remove artifacts from Single-Channel EEG Signals?
Please provide help for removing artifacts for attached EEG data file.
Properties of ATTACHED file:
Data: EEG amplitude
number of channels: 1 i.e.,'EEGFpzCz'
sampling frequency: 100HZ.
Epochs =30seconds
Total samples or amplitudes=30*100=300
I am looking forward to a positive response from you.
THANK YOU SO MUCH FOR YOUR TIME AND CONSIDERATION