Skip to content

Keeping event names when combining channel on epochs objects #11784

Closed

Description

@Sam54000

New feature or enhancement

When we create a new mne.Epochs instance through mne.channels.combine_channels, the newly created instance should have the same event id and event names than the input instance. However, the new instance contains only the events array (coming from mne.Epochs.events) but not the dictionary mapping the id to their corresponding names (coming from mne.Epochs.event_id).
Therefore the implementation would be to add in mne.channels.combine_channels a way to take account the event mapping from the input instance.

Proposed implementation

I will just add event_id = inst.event_id when calling mne.EpochsArray in mne.channels.combine_channels

Possible alternatives

None

Additional context

No response

Activity

  1. welcome commented on Jul 7, 2023

    @welcome

    Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions