def check_fiff_length(fid, close=True):
 if (fid.tell() > 2147483648):
  if close:
   fid.close()
  raise IOError('FIFF file exceeded 2GB limit, please split file or save to a different format')

def check_fiff_length ( fid , close = True ) : if ( fid . tell ( ) > 2147483648 ) : if close : fid . close ( ) raise IOError ( 'FIFF file exceeded 2GB limit, please split file or save to a different format' )
ensure our file hasnt grown too large to work properly .