Giter VIP home page Giter VIP logo

Comments (4)

walkerped avatar walkerped commented on September 22, 2024 1

The update in #114 seems to have fixed it - I can plot prep.raw, and see that the bad channel was interpolated. Thanks!

from pyprep.

sappelhoff avatar sappelhoff commented on September 22, 2024

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.

from pyprep.

walkerped avatar walkerped commented on September 22, 2024

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.

from pyprep.

sappelhoff avatar sappelhoff commented on September 22, 2024

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)

from pyprep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.