<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hello everyone,&nbsp;</div><div class=""><br class=""></div><div class="">I’m working with some BTI data and would like to include empty room recordings done prior to the patient recordings for my noise covariance. When importing the data using <a href="http://mne.io" class="">mne.io</a>.read_raw_bti() I have to set convert=False or I get an error. Then, when trying to save the data to the FIF format, I will get the same error, presumably because it is now trying to perform the conversion function that I had previously avoided.&nbsp;</div><div class=""><br class=""></div><div class="">I do not have any problems with the actual subject recordings, only the empty room one.&nbsp;</div><div class=""><br class=""></div><div class="">I’ve included the error message below. Has anyone seen this before and/or have suggestions on how to get my empty room data converted to FIF?&nbsp;</div><div class=""><br class=""></div><div class="">Thank you for your help,</div><div class="">Josh</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">This is the error that appears to occur during BTI to FIF conversion:</div><div class=""><br class=""></div><div class="">Reading 4D PDF file /mystudy/06%29%18@13:28/1/c,rfhp0.1Hz...<br class="">Creating Neuromag info structure ...<br class="">... Setting channel info structure.<br class="">... putting coil transforms in Neuromag coordinates<br class="">Traceback (most recent call last):<br class="">&nbsp;&nbsp;File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br class="">&nbsp;&nbsp;File "&lt;string&gt;", line 2, in read_raw_bti<br class="">&nbsp;&nbsp;File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/utils.py", line 729, in verbose<br class="">&nbsp; &nbsp;&nbsp;return function(*args, **kwargs)<br class="">&nbsp;&nbsp;File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/io/bti/bti.py", line 1398, in read_raw_bti<br class="">&nbsp; &nbsp;&nbsp;eog_ch=eog_ch, preload=preload, verbose=verbose)<br class="">&nbsp;&nbsp;File "&lt;string&gt;", line 2, in __init__<br class="">&nbsp;&nbsp;File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/utils.py", line 729, in verbose<br class="">&nbsp; &nbsp;&nbsp;return function(*args, **kwargs)<br class="">&nbsp;&nbsp;File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/io/bti/bti.py", line 1031, in __init__<br class="">&nbsp; &nbsp;&nbsp;sort_by_ch_name=sort_by_ch_name, eog_ch=eog_ch)<br class="">&nbsp;&nbsp;File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/io/bti/bti.py", line 1209, in _get_bti_info<br class="">&nbsp; &nbsp;&nbsp;t = _convert_coil_trans(t, dev_ctf_t, bti_dev_t)<br class="">&nbsp;&nbsp;File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/io/bti/bti.py", line 250, in _convert_coil_trans<br class="">&nbsp; &nbsp;&nbsp;t = combine_transforms(invert_transform(dev_ctf_t), bti_dev_t,<br class="">&nbsp;&nbsp;File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/transforms.py", line 576, in invert_transform<br class="">&nbsp; &nbsp;&nbsp;return Transform(trans['to'], trans['from'], linalg.inv(trans['trans']))<br class="">&nbsp;&nbsp;File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/scipy/linalg/basic.py", line 946, in inv<br class="">&nbsp; &nbsp;&nbsp;a1 = _asarray_validated(a, check_finite=check_finite)<br class="">&nbsp;&nbsp;File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/scipy/_lib/_util.py", line 238, in _asarray_validated<br class="">&nbsp; &nbsp;&nbsp;a = toarray(a)<br class="">&nbsp;&nbsp;File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/numpy/lib/function_base.py", line 1233, in asarray_chkfinite<br class="">&nbsp; &nbsp;&nbsp;"array must not contain infs or NaNs")<br class="">ValueError: array must not contain infs or NaNs</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">Joshua Bear, MD, MA | Assistant Professor, Pediatric Neurology and Epilepsy<br class="">13123 East 16th Avenue, Box B-155 | Aurora,&nbsp;CO 80045 | Phone: 720-777-6138 | Fax:&nbsp;720-777-7285&nbsp;<br class=""></div></div>
<br class=""></body></html>