Example #1
0
def test_power_welch():
    fmin = 0.1
    fmax = 300
    epochs_fname = 'test-epo.fif'
    dir_path = os.path.dirname(os.path.realpath(__file__))
    epochs_fname_abs = os.path.join(dir_path, epochs_fname)
    compute_and_save_psd(epochs_fname_abs, fmin, fmax, method='welch')
Example #2
0
 def _run_interface(self, runtime):
     print 'in Power'
     epochs_file = self.inputs.epochs_file
     fmin = self.inputs.fmin
     fmax = self.inputs.fmax
     method = self.inputs.method
     self.psds_file = compute_and_save_psd(epochs_file, fmin, fmax, method)
     return runtime