@verbose
def apply_forward(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 evoked_template.' % ch_name))
 (data, times) = _apply_forward(fwd, stc, start, stop)
 sfreq = float((1.0 / stc.tstep))
 info_out = _fill_measurement_info(info, fwd, sfreq)
 evoked = EvokedArray(data, info_out, times[0], nave=1)
 evoked.times = times
 evoked.first = int(np.round((evoked.times[0] * sfreq)))
 evoked.last = ((evoked.first + evoked.data.shape[1]) - 1)
 return evoked

@ verbose def apply_forward ( 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 evoked_template.' % ch_name ) ) ( data , times ) = _apply_forward ( fwd , stc , start , stop ) sfreq = float ( ( 1.0 / stc . tstep ) ) info_out = _fill_measurement_info ( info , fwd , sfreq ) evoked = EvokedArray ( data , info_out , times [ 0 ] , nave = 1 ) evoked . times = times evoked . first = int ( np . round ( ( evoked . times [ 0 ] * sfreq ) ) ) evoked . last = ( ( evoked . first + evoked . data . shape [ 1 ] ) - 1 ) return evoked
project source space currents to sensor space using a forward operator .