def _fill_measurement_info(info, fwd, sfreq):
 sel = pick_channels(info['ch_names'], fwd['sol']['row_names'])
 info = pick_info(info, sel)
 info['bads'] = []
 info['meas_id'] = fwd['info']['meas_id']
 info['file_id'] = info['meas_id']
 now = time()
 sec = np.floor(now)
 usec = (1000000.0 * (now - sec))
 info['meas_date'] = np.array([sec, usec], dtype=np.int32)
 info['highpass'] = 0.0
 info['lowpass'] = (sfreq / 2.0)
 info['sfreq'] = sfreq
 info['projs'] = []
 return info

def _fill_measurement_info ( info , fwd , sfreq ) : sel = pick_channels ( info [ 'ch_names' ] , fwd [ 'sol' ] [ 'row_names' ] ) info = pick_info ( info , sel ) info [ 'bads' ] = [ ] info [ 'meas_id' ] = fwd [ 'info' ] [ 'meas_id' ] info [ 'file_id' ] = info [ 'meas_id' ] now = time ( ) sec = np . floor ( now ) usec = ( 1000000.0 * ( now - sec ) ) info [ 'meas_date' ] = np . array ( [ sec , usec ] , dtype = np . int32 ) info [ 'highpass' ] = 0.0 info [ 'lowpass' ] = ( sfreq / 2.0 ) info [ 'sfreq' ] = sfreq info [ 'projs' ] = [ ] return info
fill the measurement info of a raw or evoked object .