Skip to content

ENH: raw.info['bads'] += unchecked #12015

Closed

Description

@larsoner

We currently check raw.info['bads'] = ... because we can do it in Info.__setitem__, but we don't check raw.info['bads'] += because this is a += operation on the bads list. One hopefully easy way to fix this would be to subclass List to check any inplace ops (append, extend, +=, ...?) to check if the channels can be added. This would require keeping a reference to the Info object, though (because you need the channel names), but that should be possible in principle I think.

Activity

  1. self-assigned this
    on Sep 25, 2023
  2. added this to the 1.6 milestone on Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions