// Filenames for various files we"ll be using
meg_path = op.join(data_path, "MEG", "sample")
raw_fname = op.join(meg_path, "sample_audvis_raw.fif")
trans_fname = op.join(meg_path, "sample_audvis_raw-trans.fif")
src_fname = op.join(mri_path, "bem/sample-oct-6-src.fif")
bem_fname = op.join(mri_path, "bem/sample-5120-5120-5120-bem-sol.fif")
fwd_fname = op.join(meg_path, "sample_audvis-meg-eeg-oct-6-fwd.fif")
cov_fname = op.join(meg_path, "sample_audvis-cov.fif")
After Change
sfreq = 50. // Sampling frequency of the generated signal
n_samp = int(round(10. * sfreq))
times = np.arange(n_samp) / sfreq // 10 seconds of signal
n_times = len(times)