Skip to content

Select channels based on their labels #61

@cboulay

Description

@cboulay

I've had a request from a user to be able to select elements along a CoordinateAxis axis (i.e., "ch" axis) based on string pattern matching against its .data field.

Whether it's in Slicer or another node, the design might involve:

  • expression: str | tuple[str, ...] parameter -- one or more regex expressions that the channel labels are matched against.
  • During "reset" (i.e., on first chunk or when the input metadata has changed to trigger a reset), the integer indices of channels that match the expression(s) are calculated (and concatenated) and kept as a state variable.
  • On every chunk, we simply use the integer indices.

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