def _write_proc_history(fid, info):
 if ('proc_history' not in info):
  return
 if (len(info['proc_history']) > 0):
  start_block(fid, FIFF.FIFFB_PROCESSING_HISTORY)
  for record in info['proc_history']:
   start_block(fid, FIFF.FIFFB_PROCESSING_RECORD)
   for (key, id_, writer) in zip(_proc_keys, _proc_ids, _proc_writers):
    if (key in record):
     writer(fid, id_, record[key])
   _write_maxfilter_record(fid, record['max_info'])
   if ('smartshield' in record):
    for ss in record['smartshield']:
     start_block(fid, FIFF.FIFFB_SMARTSHIELD)
     end_block(fid, FIFF.FIFFB_SMARTSHIELD)
   end_block(fid, FIFF.FIFFB_PROCESSING_RECORD)
  end_block(fid, FIFF.FIFFB_PROCESSING_HISTORY)

def _write_proc_history ( fid , info ) : if ( 'proc_history' not in info ) : return if ( len ( info [ 'proc_history' ] ) > 0 ) : start_block ( fid , FIFF . FIFFB_PROCESSING_HISTORY ) for record in info [ 'proc_history' ] : start_block ( fid , FIFF . FIFFB_PROCESSING_RECORD ) for ( key , id_ , writer ) in zip ( _proc_keys , _proc_ids , _proc_writers ) : if ( key in record ) : writer ( fid , id_ , record [ key ] ) _write_maxfilter_record ( fid , record [ 'max_info' ] ) if ( 'smartshield' in record ) : for ss in record [ 'smartshield' ] : start_block ( fid , FIFF . FIFFB_SMARTSHIELD ) end_block ( fid , FIFF . FIFFB_SMARTSHIELD ) end_block ( fid , FIFF . FIFFB_PROCESSING_RECORD ) end_block ( fid , FIFF . FIFFB_PROCESSING_HISTORY )
write processing history to file .