Repository navigation
Conversation
| data = np.asarray([evoked_.data[picks, :].mean(0) | ||
| for evoked_ in evokeds[condition]]) | ||
| if ch_type == 'grad': | ||
| data = [(_merge_grad_data(evoked_.data[picks, :])). |
There was a problem hiding this comment.
It seems you need to import _merge_grad_data :)
Also maybe you will have to include a check that the relevant channels are in the picks.
|
Thanks for tackling this! |
|
Shouldn't there be an import error if I also tried unpacking and running
I am also suspecting the pairing of grads is somehow getting botched between ci and averaging, but can't see how. Anyway TBC, late here. |
No, if you try to use something that's not defined, you get a NameError. ImportError is for stuff that you try to import, but the import fails. |
|
Sorry, that's what I meant. I think |
Codecov Report
@@ Coverage Diff @@
## master #4736 +/- ##
==========================================
- Coverage 87.84% 61.6% -26.24%
==========================================
Files 349 349
Lines 65761 65764 +3
Branches 11311 11313 +2
==========================================
- Hits 57767 40515 -17252
- Misses 5124 22676 +17552
+ Partials 2870 2573 -297 |
|
So it looks like
is different from
Does this make sense? |
|
@ktavabi to compute CIs on combined grads you need first to combine grads in other words you cannot compute CIs on each channel clear? |
|
Import of |
|
Sorry, @agramfort I am not sure what you mean. Where
I was assuming that is the scope of this PR i.e., we need mean + CIs of grad RMS (fig 2) across evokeds (fig 3) for gist in #4730 to work, no? |
|
Sorry, I can't be of much help here. I messed it up in the first place, grads just confuse me. |

Attempt to fix #4730