<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr">Hi there,<div>I&#39;d like to play around with the head position information from some raw fif files.  I have been using the maxfilter program to extract the head position files (the 6 quaternion variables) for some of the data, and I&#39;ve been importing that using chpi.read_head_pos() and that works fine.  But I also have some raw data that I&#39;d like to use, but that is failing.</div><div>I can use the maxfilter gui to review the head positions, so I know the data is there.</div><div>I am following the plot head positions <a href="https://secure-web.cisco.com/1j4hhJQeZQNept_VI5WYCPKzV2CuMc0RYCcGKcd1Ro_zuPEuL9UCRFXLY_39y972YhG9iNQht-fFyhBjZfvWJ4fmVKXzNSgOSLTbbxIphiU-6fJW9GJHxwlgWT6ooXTV1BYv9opnUtzUrzv7YmS9GtCXNvBBMy3HeRcIoCBP9zwsHJB9zvDvRT2Z8TjQLKSNra9TrkrW7c2jpTBhNIaNCW8WSuC7sPGmE_Fc3g09SMc76rwVpr6N9LuhlV1v9JPalCpTAJ4NWjvVzZVwaEYReIg/https%3A%2F%2Fmne.tools%2Fstable%2Fauto_tutorials%2Fpreprocessing%2Fplot_59_head_positions.html%23sphx-glr-auto-tutorials-preprocessing-plot-59-head-positions-py">tutorial</a>.</div><div>io.read_raw works fine, chpi.compute_chpi_amplitutdes works, chpi.compute_chpi_locs seems to work, but then chpi.compute_head_pos I get &lt;ipython-input-88-83e389120352&gt;:1: RuntimeWarning:     t=598.850:   0/4 good HPI fits, cannot determine the transformation (0.16, 0.21, 0.18, 0.18)!</div><div>and the array in the output dictionary is empty.</div><div>I am running mne 21.0  (it works on the old CentOS6.7 without the 3d plotting. I have it working on Ubuntu for 3d visualisations, finally, if you remember my other thread from a while ago).</div><div><br></div><div>Here are the commands I&#39;m using:</div><div>            raw = concat.concat_func(activeSubject, task, data_path, defhead, mc)<br></div><div>            chpi_amplitudes = mne.chpi.compute_chpi_amplitudes(raw)<br>            chpi_locs = mne.chpi.compute_chpi_locs(<a href="http://secure-web.cisco.com/1IO8_k8xX5lfjdgro-jLBGWb8vMAZR9-cFSnRMXOqAjuhB6IkcFWcOI1_F06CgYkCHty47WctXtkAc5bIucHbMoH__9pMqFkee7Si0ZF5og4QZ93n4wlQCKQ7C56kDwmPdsweF2Sn-cZ2fwq3vuXd_Y_ApTK8T3ykQD0Ln8PYv1PYyrWSbWedrUymv7kFzvfhB2MvdrDjULdmC4CNiOgLcEuJyqjr29yGN8Qd4GuVtgj6XpRnsVdm9Ks4vZYqEdiQMnpQP79V4HcTAWPyniox8w/http%3A%2F%2Fraw.info"><font color="red"><b>MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be</b></font> raw.info</a>, chpi_amplitudes)<br></div><div>            head_pos= mne.chpi.compute_head_pos(<a href="http://secure-web.cisco.com/1IO8_k8xX5lfjdgro-jLBGWb8vMAZR9-cFSnRMXOqAjuhB6IkcFWcOI1_F06CgYkCHty47WctXtkAc5bIucHbMoH__9pMqFkee7Si0ZF5og4QZ93n4wlQCKQ7C56kDwmPdsweF2Sn-cZ2fwq3vuXd_Y_ApTK8T3ykQD0Ln8PYv1PYyrWSbWedrUymv7kFzvfhB2MvdrDjULdmC4CNiOgLcEuJyqjr29yGN8Qd4GuVtgj6XpRnsVdm9Ks4vZYqEdiQMnpQP79V4HcTAWPyniox8w/http%3A%2F%2Fraw.info"><font color="red"><b>MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be</b></font> raw.info</a>, chpi_locs, verbose=True)<br></div><div>Any suggestions?  Would it be helpful if I shared a bit of data?</div><div>Thank you,<br>Megan</div><div><br></div><div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>MEG Technician<br>The Mind Research Network<br>1101 Yale Blvd. NE<br>Albuquerque, New Mexico 87106<br><br></div></div></div></div></div></div></div>