Skip to content

stc.project('pca', src) requires fwd['src'] #7932

Closed

Description

@bloyl

Sometimes a few source locations are dropped in forward computation so the stc gets out of sync with the original src. this means you need to call stc.project('pca', fwd['src']). It would be nice if you could use the original src.

This problem used to exist with stc.extract_label_time_course but that has been fixed maybe by #6789?

I'm not sure how to replicate this issue on sample data but I could share some data that exhibits the issue if that is needed.

Activity

  1. larsoner commented on Jun 25, 2020

    @larsoner
    Member

    Indeed it looks like the same fix from #6789 could be applied to stc.project. Can you look into refactoring it for example into a _check_vertices_subset for https://github.com/mne-tools/mne-python/pull/6789/files#diff-3623e826cb12cb2dfa80dddf3b746d02R2544-R2549 then just reusing with _temporary_vertices(src, stc.vertices):?

  2. added this to the 0.21 milestone on Jun 25, 2020
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions