<div dir="ltr"><div>Hello everyone,</div><div><br></div><div>My name is Alexandria McPherson and I am a PhD student working with the physics behind MEG at the Institute for Learning and Brain Sciences, University of Washington, Seattle. Currently, I am focusing on ways to modify the signal space separation method for use with on-scalp MEG sensor systems.</div><div><br></div><div> I am running into some issues using FieldTrip to load raw data from .fif files. Specifically, I have been working with the example file "sample-audvis-raw.fif" which is provided by MNE-Python in their "MEG/sample" data folder. Here is a Dropbox link to the data: <a href="https://www.dropbox.com/scl/fo/gffle6d9ppa47pkmes8gj/h?rlkey=8swrsnlyiz61si5ycrxg5x9c2&dl=0" target="_blank">https://www.dropbox.com/scl/fo/gffle6d9ppa47pkmes8gj/h?rlkey=8swrsnlyiz61si5ycrxg5x9c2&dl=0</a>. </div><div>I am first loading in the "info" structure, here is the code I am running:</div><div> <span style="font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace">filename = </span><span style="font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;color:rgb(167,9,245)">"C:/Users/.../mne_data/MNE-sample-data/MEG/sample/sample_audvis_raw.fif</span><span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">info = fiff_read_meas_info(filename);</span><span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">[raw] = fiff_setup_read_raw(filename);</span><span style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">[data,times] = fiff_read_raw_segment(raw);</span><br></div><div><br></div><div>I am able to read the "info" and "raw" objects, but when I run "fiff_read_raw_segment", I recieve the following error: <br></div><div><font face="monospace">Error using fseek. Invalid file identifier. Use fopen to generate a valid file identifier. </font></div><div><font face="monospace">Error in fiff_read_tag (line 83)</font><br></div><div><font face="monospace">fseek(fid,pos,'bof');<br>Error in fiff_read_raw_segment (line 152)<br>tag = fiff_read_tag(raw.fid,this.ent.pos);</font><br></div><div><br></div><div>I also get this same error with other MEG "fif" files. Would you have any ideas as to what might be the issue?</div><div><br></div><div>Thanks!</div>Alexandria<br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr">Physics PhD Student | I-LABS | University of Washington<div>B.S. Engineering Physics | Colorado School of Mines</div></div></div></div></div>