Skip to content

Improve SourceEstimate information / provenance #14622

Backlog

Description

@larsoner

Mistakes like those mentioned in #14621 should be prevented in code if possible (e.g., shouldn't be able to use mean_flip with magnitude source estimates by default, maybe allowable if on_bad_mode="raise" default). This makes me think we should add some information to the *SourceEstimate classes. At a minimum, something like the source estimation method (dSPM, MNE, ...) and signed vs magnitude (not sure of a good name) would be good.

I am also not sure if this should live in *SourceEstimate classes themselves, or if we should implement some shiny new flexible SourceData class that could store labelized data (which could also still be signed, or not; also from different source estimation methods) in addition to / instead of / beside vertex-specific data. Easiest short-term would be to add to *SourceEstimate. Best long-term would be to design some specialized class. I'll open a separate issue for that.

My suggestion would be to start by trying to modify *SourceEstimate to have some of this info in a backward-compatible way, since I'd estimate it's probably a few hundred lines and can save users some pain. Then in the future we think and implement a SourceData class separately.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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