Skip to content

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

@larsoner

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.

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