<div dir="ltr"><div><div><div>Hi Benoît,<br><br></div>I think you need a *.pos file not *.fif file to read the head position (like the one attached). It&#39;s generated by maxfilter. Also, this is only required if you plan to do movement compensation ...<br><br></div><div>Eric, shouldn&#39;t you be able to read the head position directly from the *.fif files because you have the head_to_dev transforms?<br></div><div><br></div>Best regards,<br></div>Mainak<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 13, 2016 at 5:29 PM, Benoît MARTIN <span dir="ltr">&lt;<a href="mailto:bmartin.neuro@gmail.com" target="_blank">bmartin.neuro@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Dear all,<br><br></div>I am actually trying to read the head position from my .fif file,<br></div>but I get this error: &quot;Could not convert string to float&quot;<br><br></div>here is my line of code:<br><br><br>raw_fname = data_path + &#39;raw/cb140229_mag_run1.fif&#39;<br># Read head position<br>head_pos = mne.chpi.read_head_pos(raw_fname)      [error is at that point]<br>raw_sss = maxwell_filter(raw, calibration=cal_fname,  cross_talk = ctc_fname, head_pos=None)<br><br><br></div>I am wondering what I am doing wrong, or if I can read head position from the .fif file.<br></div>Any help is welcome,<br><br></div>Best,<br></div>Benoît MARTIN<br></div>
<br>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>