Skip to content

.EDF data file import in a file and have an error #8145

Closed

Description

@mianjalal786

hey
when i try to import a data in mne i got this error

ValueError: DigMontage is a only a subset of info. There are 27 channel positions not present in the DigMontage. The required channels are: ['TIME_STAMP_s', 'TIME_STAMP_ms', 'COUNTER', 'INTERPOLATED', 'RAW_CQ', 'BATTERY', 'MarkerIndex', 'MarkerType', 'MarkerValueInt', 'MARKER_HARDWARE', 'CQ_AF3', 'CQ_F7', 'CQ_F3', 'CQ_FC5', 'CQ_T7', 'CQ_P7', 'CQ_O1', 'CQ_O2', 'CQ_P8', 'CQ_T8', 'CQ_FC6', 'CQ_F4', 'CQ_F8', 'CQ_AF4', 'CQ_OVERALL', 'CQ_CMS', 'CQ_DRL']

This is the code i m using

import mne

mne.set_log_level("WARNING")

raw = mne.io.read_raw_edf("eaw.edf", preload=True)
raw.rename_channels(lambda s: s.strip("."))

montage = mne.channels.make_standard_montage("standard_1020")
raw.set_montage(montage, match_case=False)

raw.set_eeg_reference("average")

print(raw)
print(raw.info)

raw.plot_psd(fmax=50)
raw.plot(duration=5, n_channels=30)

Activity

  1. agramfort commented on Aug 23, 2020

    @agramfort
    SponsorMember
  2. drammock commented on Aug 23, 2020

    @drammock
    Member

    This question comes up a lot, maybe it should get added to the FAQ

  3. agramfort commented on Aug 23, 2020

    @agramfort
    SponsorMember
  4. added this to the 0.21 milestone on Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions