Closed walkerped closed 2 years ago
Thanks for the report, this might have to do with the recent MNE-Python 1.0 release ... are you using mne at version 1.0?
Perhaps the warning is spurious for our case and could be suppressed.
Yes, I am using MNE v. 1.0.0. It seems to be causing any process I run with prep.raw to fail, rather than just being a warning. So if I run EEG = prep.raw.get_data()
and get the error, I'll get a NameError: name 'EEG' is not defined
if I try to refer to EEG. Similarly if I try to do prep.raw.plot()
, I get the ValueError: Measurement infos are inconsistent for dig
error again.
please see what I wrote in #114
Also, please double check your code and see the warnings that your code produces:
/tmp/ipykernel_16702/2558830226.py:9: RuntimeWarning: Unknown types found, setting as type EEG: heog: ['HEO'] pupil: ['R-Dia-X-(mm)', 'R-Dia-Y-(mm)'] veog: ['VEO'] raw_eeg = mne.io.read_raw_eeglab(eeg_file) /tmp/ipykernel_16702/2558830226.py:9: RuntimeWarning: Data will be preloaded. preload=False or a string preload is not supported when the data is stored in the .set file raw_eeg = mne.io.read_raw_eeglab(eeg_file) /tmp/ipykernel_16702/2558830226.py:9: RuntimeWarning: Not setting position of 1 ecg channel found in montage: ['EKG'] Consider setting the channel types to be of EEG/sEEG/ECoG/DBS/fNIRS using inst.set_channel_types before calling inst.set_montage, or omit these channels when creating your montage. raw_eeg = mne.io.read_raw_eeglab(eeg_file)
The update in https://github.com/sappelhoff/pyprep/pull/114 seems to have fixed it - I can plot prep.raw, and see that the bad channel was interpolated. Thanks!
I am trying to data from openneuro (the first subject under https://openneuro.org/datasets/ds003690/versions/1.0.0) through pyprep with the following code.
The command appears to be successful giving the following output:
And I am able to retrieve info about bad channels with the following code and output:
But when I try to refer to prep.raw in any command, for example
EEG = prep.raw.get_data()
, I get an error like:Although other attributes of prep seem to be fine: