Hi everyone,
I was having a hard time importing .fif files which were preprocessed in MNE. I use MNE-Python for preprocessing MEG recordings as we have an established pipeline. I have added two lines of code in function fif_setup_raw:
switch ent.type
case FIFFT_DAU_PACK16
nsamp = ent.size/(2info.nchan);
case FIFFT_SHORT
nsamp = ent.size/(2info.nchan);
case FIFFT_FLOAT
nsamp = ent.size/(4info.nchan);
case FIFFT_INT
nsamp = ent.size/(4info.nchan);
otherwise
nsamp = (ent.size/(4*info.nchan))/2;
%fclose(fid);
%error(me,'Cannot handle data buffers of type %d',ent.type);
I added the line mentioned in bold and commented out the next two lines.
l have to change the code every time I update Brainstorm. Just thought it might be helpful if the source code can be modified.
Thanks.