Skip to content

API: Unify lcmv and dics code #5109

Closed
Closed

Description

@larsoner

Some of the inversion / pinv / eigh calls should be unified in the LCMV and beamformer code, see XXX's introduced in _lcmv.py and _dics.py in #5066.

Activity

  1. britta-wstnr commented on Apr 10, 2018

    @britta-wstnr
    Member

    I'd be happy to take a look next week - or should is this a milestone for 0.16, @larsoner ?

  2. larsoner commented on Apr 10, 2018

    @larsoner
    MemberAuthor

    I don't think it should be a blocker for the release, but if we can get it in that would be great

  3. britta-wstnr commented on Apr 10, 2018

    @britta-wstnr
    Member

    Okay, I will try to get a list of what would be needed ASAP - then maybe we can see how big of a project this will be and if it's reasonable to get it done fast?

  4. larsoner commented on Apr 10, 2018

    @larsoner
    MemberAuthor

    Sounds good to me

  5. britta-wstnr commented on Apr 13, 2018

    @britta-wstnr
    Member

    As far as I see it, the following needs to be done:

    • functions like _prepare_beamformer_input, _setup_picks, _reg_pinv, eig_inv, _check_proj_match, _pick_channels_spatial_filter (and whatever I missed at first glance) could go into a beamformer_utils file
    • the beamformer "heart" (the core of make_lcmv and make_dics) could go to a _compute_beamformer function that is shared by DICS and LCMV.

    The second point is a bit sensitive, since there are some functionalities that are shared between DISC and LCMV and some that work quite differently.

    For a first iteration I would keep everything as it is at the moment and only unify truly shared code, but still making it one file. From there we can see where we want to change the respective methods lcmv and dics. This would not require and API changes.

    I am happy to give it a go - if you are okay with this setup @larsoner I would start working on it!

  6. larsoner commented on Apr 13, 2018

    @larsoner
    MemberAuthor
  7. britta-wstnr commented on Apr 13, 2018

    @britta-wstnr
    Member

    Okay then I will start with the first one, which should be quick enough because it's all functions, so it's just changing imports and think about how to do number 2 in the meanwhile 😉
    PR(s) follow!

  8. larsoner commented on Aug 18, 2018

    @larsoner
    MemberAuthor

    Subsumed by #5365

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