@verbose
def apply_forward_raw(fwd, stc, info, start=None, stop=None, verbose=None):
 for ch_name in fwd['sol']['row_names']:
  if (ch_name not in info['ch_names']):
   raise ValueError(('Channel %s of forward operator not present in info.' % ch_name))
 (data, times) = _apply_forward(fwd, stc, start, stop)
 sfreq = (1.0 / stc.tstep)
 info = _fill_measurement_info(info, fwd, sfreq)
 info['projs'] = []
 raw = RawArray(data, info)
 raw.preload = True
 raw._first_samps = np.array([int(np.round((times[0] * sfreq)))])
 raw._last_samps = np.array([((raw.first_samp + raw._data.shape[1]) - 1)])
 raw._projector = None
 raw._update_times()
 return raw

@ verbose def apply_forward_raw ( fwd , stc , info , start = None , stop = None , verbose = None ) : for ch_name in fwd [ 'sol' ] [ 'row_names' ] : if ( ch_name not in info [ 'ch_names' ] ) : raise ValueError ( ( 'Channel %s of forward operator not present in info.' % ch_name ) ) ( data , times ) = _apply_forward ( fwd , stc , start , stop ) sfreq = ( 1.0 / stc . tstep ) info = _fill_measurement_info ( info , fwd , sfreq ) info [ 'projs' ] = [ ] raw = RawArray ( data , info ) raw . preload = True raw . _first_samps = np . array ( [ int ( np . round ( ( times [ 0 ] * sfreq ) ) ) ] ) raw . _last_samps = np . array ( [ ( ( raw . first_samp + raw . _data . shape [ 1 ] ) - 1 ) ] ) raw . _projector = None raw . _update_times ( ) return raw
project source space currents to sensor space using a forward operator .