movement compensation with HPI per run

Hello,

I have a problem in performing movement compensation with MNE-Python. The maxwell_filter function expects head_pos to do this. I used compute_chpi_amplitudes to feed into compute_chpi_locs. However, it returned an array (slopes) that is only nans.

In our experiment, we collected HPI at the beginning of each run but not continuous HPI. We could use Maxfilter but I was wondering if there is a solution to this using MNE-Python itself.

  • MNE version: 1.4
  • operating system: CentOS 8

Thank you!

Isil

If cHPI was not enabled at any time during the recording, then there is no cHPI information available in your data to perform movement compensation and MaxWell filter (MNE or MEGIN’s version) can not magically create this information.

Movement compensation is just one of the many operations applied by MaxWell filter. The other operations which do not depend on cHPI information will still be available.

Best,
Mathieu

1 Like