Skip to content

Epochs.drop should warn if all epochs would be dropped #13473

@sappelhoff

Description

@sappelhoff

https://mne.tools/stable/generated/mne.Epochs.html#mne.Epochs.drop

We do the same for drop_channels:

if len(idx) == 0:
raise ValueError("All channels would be dropped.")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions