neurofractal / analyse_OPMEG

Nic & Rob's lair of scripts to analyse OPM data, using the Fieldtrip toolbox
https://neurofractal.github.io/analyse_OPMEG/
MIT License
9 stars 1 forks source link

Fix grad field construction #7

Closed neurofractal closed 4 years ago

neurofractal commented 4 years ago

One issue to solve:

When constructing grad, the chanpos and chanori fields need to be the same length the number of overall channels otherwise Fieldtrip complains. Could give these arbitrary positions and orientations?

_Originally posted by @neurofractal in https://github.com/neurofractal/analyse_OPMEG/issues/1#issuecomment-585270778_

neurofractal commented 4 years ago

Related to this:

1) For other data types the number of channels in data and grad does not need to be equal...???

2) ft_opm_create should be able to reorder the grad information based on the order of the data labels