Skip to content

ENH: Improve VertexSelect-related functions by passing Source Index in addition to Vertex Index #14094

Description

@Gnefil

Describe the new feature or enhancement

Current VertexSelect-related functions, such as rendering the line plot at clicking on the brain after stc.plot(), pass vertex indexes only to the event. Therefore, subscribed functions need to down-sample again in order to map to the actual source index. By passing the source index, we could save repeated computation.

Describe your proposed implementation

Investigating the logic of VertexSelect enables proper parameter (source index) transmission to subscribed methods.

Describe possible alternatives

N/A

Additional context

No response

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