Skip to content

fix CTF MNE/dSPM due to comps - #5388

Merged
agramfort merged 2 commits into
mne-tools:masterfrom
agramfort:fix_ctf_comps_mne
Aug 3, 2018
Merged

agramfort merged 2 commits into
mne-tools:masterfrom
agramfort:fix_ctf_comps_mne

Conversation

@agramfort

Copy link
Copy Markdown
Member

@massich it should fix your CI failure.

@codecov

codecov Bot commented Aug 2, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #5388 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #5388      +/-   ##
==========================================
+ Coverage   88.27%   88.28%   +<.01%     
==========================================
  Files         358      358              
  Lines       66368    66381      +13     
  Branches    11278    11278              
==========================================
+ Hits        58589    58606      +17     
+ Misses       4956     4953       -3     
+ Partials     2823     2822       -1

Comment thread mne/minimum_norm/tests/test_inverse.py Outdated
mne.setup_volume_source_space(pos=15.0),
mne.make_sphere_model())
inv = make_inverse_operator(evoked.info, fwd, noise_cov, loose=1.)
apply_inverse(evoked, inv, lambda2, 'dSPM')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a little bit faster (one source for fwd and no cov computation), it's what I was using before I had to stop:

    raw = read_raw_ctf(fname_ctf).crop(0, 1)
    raw.apply_gradient_compensation(1)
    sphere = make_sphere_model()
    cov = make_ad_hoc_cov(raw.info)
    src = setup_volume_source_space(
        pos=dict(rr=[[0., 0., 0.01]], nn=[[0., 1., 0.]]))
    fwd = make_forward_solution(raw.info, None, src, sphere, eeg=False)
    inv = make_inverse_operator(raw.info, fwd, cov, loose=1.)
    apply_inverse_raw(raw, inv, 1. / 9.)

@agramfort
agramfort merged commit 83e16e2 into mne-tools:master Aug 3, 2018
@agramfort

Copy link
Copy Markdown
Member Author

all green !

@agramfort agramfort mentioned this pull request Aug 4, 2018
bloyl added a commit to bloyl/mne-python that referenced this pull request Oct 4, 2018
bloyl added a commit to bloyl/mne-python that referenced this pull request Oct 8, 2018
bloyl added a commit to bloyl/mne-python that referenced this pull request Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants