<div dir="ltr"><div><p>I hope you are doing well. I am writing to report an issue related to loading our OPM data (FIF format) using both MATLAB (FieldTrip) and Python (MNE).</p><p><strong>Issue Summary</strong></p><ul><li style="margin-left:15px"><p>Some FIF files recorded in the <em>same experiment session</em> fail to load properly.</p></li><li style="margin-left:15px"><p>The end portion of the data appears truncated when loaded.</p></li><li style="margin-left:15px"><p>This occurs identically in both MATLAB and Python, while certain PCs load all files without any issues. This suggests that the data files themselves are not corrupted.</p></li></ul><p><strong>Technical Details</strong></p><ul><li style="margin-left:15px"><p>In MATLAB, we confirmed that the problem occurs inside the <code>fiff_setup_read_raw</code> function, specifically at line 79 where <code>fiff_dir_tree_find</code> is called.</p></li><li style="margin-left:15px"><p>For files that fail to load, the <code>raw.dir</code> structure contains corrupted values.</p><ul><li style="margin-left:15px"><p>Normally, values such as <code>kind</code> and <code>type</code> are consistent integers (e.g., <code>kind = 300</code>, <code>type = 4</code>).</p></li><li style="margin-left:15px"><p>In problematic files, the last entry contains abnormal values (e.g., <code>kind = -113471426</code>, <code>type = -1.103131550000000e+09</code>).</p></li></ul></li><li style="margin-left:15px"><p>The implementation of <code>fiff_dir_tree_find</code> does not show abnormalities, making debugging difficult.</p></li><li style="margin-left:15px"><p>We are using the latest FieldTrip version cloned from GitHub and the fieldtrp Web's download</p></li></ul><p>If you could provide any guidance or suggestions for further debugging, or if you are aware of similar cases, your help would be greatly appreciated.</p><p>Thank you very much in advance.</p><p>Best regards,<br>Daeun Gwon</p></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font size="1"><span style="color:rgb(34,34,34)"><font face="georgia, serif"><span style="font-weight:bold">Daeun Gwon</span><b> </b>(</font></span><span style="color:rgb(34,34,34);font-family:georgia,serif">Ph.D.)</span></font><div><div><font size="1" color="#666666"><span style="font-family:georgia,serif">Dept. of </span><font face="georgia, serif">Computer Science and Electrical Engineering</font><br></font></div><div><font size="1" color="#666666"><span style="font-family:georgia,serif">Handong Global University (HGU), South Korea</span><br></font></div></div><div><font color="#666666"><font size="1"><span style="font-family:garamond,"times new roman",serif">Homepage: </span></font></font><span style="font-size:x-small;color:rgb(102,102,102)"><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbuly.kr%2F74W1jXo&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Cbcd93d4d68474ac6380608de2ca6a0ef%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638997291595662840%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C40000%7C%7C%7C&sdata=m7q%2Bt3AdXsJdd1LbGlCwnS29nHdh75ZsliDmfCk6qjk%3D&reserved=0" originalSrc="https://buly.kr/74W1jXo" target="_blank">https://buly.kr/74W1jXo</a> </span></div></div></div></div>