combining planar gradiometers

External Email - Use Caution

hi,

is there some possibility to combine the respective pairs of planar
gradiometers (i.e. compute the RMS) and store these in a Evoked object?
this would be really handy when doing stats or comparing conditions
otherwise....

best,
thomas

External Email - Use Caution

Hi Thomas,

I would use EvokedArray:
https://martinos.org/mne/stable/generated/mne.EvokedArray.html

to do the job. You may need to write a few lines of numpy. Let me know if
you need help with that.

Best,
Mainak

External Email - Use Caution

hi mainak,

yes, that would be a kind of hacky way to do it. i was just wondering,
if a solution similar to the ft_combineplanar one in fieldtrip existed
for MNE, including a dedicated sensor type etc...

best,
thomas

External Email - Use Caution

hi,

there is everything you need in private methods in the mne/viz module.
It would need to be exposed in a public function and to be able to return
for example a fresh evoked object.

would you have time to do a PR thomas,

Alex

External Email - Use Caution

All,

Does evoked.as_type() do something like this? E.g. https://martinos.org/mne/stable/auto_examples/preprocessing/plot_virtual_evoked.html

Best,

Jon

External Email - Use Caution

hi Jon,

no as_type lets you map between actually sensor types.

Alex