def end_file(fid):
 data_size = 0
 fid.write(np.array(FIFF.FIFF_NOP, dtype='>i4').tostring())
 fid.write(np.array(FIFF.FIFFT_VOID, dtype='>i4').tostring())
 fid.write(np.array(data_size, dtype='>i4').tostring())
 fid.write(np.array(FIFF.FIFFV_NEXT_NONE, dtype='>i4').tostring())
 check_fiff_length(fid)
 fid.close()

def end_file ( fid ) : data_size = 0 fid . write ( np . array ( FIFF . FIFF_NOP , dtype = '>i4' ) . tostring ( ) ) fid . write ( np . array ( FIFF . FIFFT_VOID , dtype = '>i4' ) . tostring ( ) ) fid . write ( np . array ( data_size , dtype = '>i4' ) . tostring ( ) ) fid . write ( np . array ( FIFF . FIFFV_NEXT_NONE , dtype = '>i4' ) . tostring ( ) ) check_fiff_length ( fid ) fid . close ( )
write the closing tags to a fif file and closes the file .