This is an automated email from the git hooks/post-receive script. yoh pushed a commit to annotated tag v0.1 in repository python-mne.
commit 6dedaf996aec06a5e8b0618f587aff390102b77b Author: Alexandre Gramfort <[email protected]> Date: Tue Mar 8 22:08:51 2011 -0500 FIX : due to latest API change --- examples/plot_read_epochs.py | 9 ++++++--- examples/time_frequency/plot_time_frequency.py | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/plot_read_epochs.py b/examples/plot_read_epochs.py index e2c6d94..500a45c 100644 --- a/examples/plot_read_epochs.py +++ b/examples/plot_read_epochs.py @@ -41,21 +41,24 @@ eeg_picks = fiff.pick_types(raw.info, meg=False, eeg=True, stim=False, include=include, exclude=exclude) eeg_epochs = mne.Epochs(raw, events, event_id, tmin, tmax, picks=eeg_picks, baseline=(None, 0)) -eeg_evoked_data = eeg_epochs.average() +eeg_evoked = eeg_epochs.average() +eeg_evoked_data = eeg_evoked.data # MEG Magnetometers meg_mag_picks = fiff.pick_types(raw.info, meg='mag', eeg=False, stim=False, include=include, exclude=exclude) meg_mag_epochs = mne.Epochs(raw, events, event_id, tmin, tmax, picks=meg_mag_picks, baseline=(None, 0)) -meg_mag_evoked_data = meg_mag_epochs.average() +meg_mag_evoked = meg_mag_epochs.average() +meg_mag_evoked_data = meg_mag_evoked.data # MEG meg_grad_picks = fiff.pick_types(raw.info, meg='grad', eeg=False, stim=False, include=include, exclude=exclude) meg_grad_epochs = mne.Epochs(raw, events, event_id, tmin, tmax, picks=meg_grad_picks, baseline=(None, 0)) -meg_grad_evoked_data = meg_grad_epochs.average() +meg_grad_evoked = meg_grad_epochs.average() +meg_grad_evoked_data = meg_grad_evoked.data ############################################################################### # View evoked response diff --git a/examples/time_frequency/plot_time_frequency.py b/examples/time_frequency/plot_time_frequency.py index 2725aa4..0333976 100644 --- a/examples/time_frequency/plot_time_frequency.py +++ b/examples/time_frequency/plot_time_frequency.py @@ -48,7 +48,7 @@ data = epochs.get_data() # as 3D matrix evoked = epochs.average() # compute evoked fields times = 1e3 * epochs.times # change unit to ms -evoked *= 1e13 # change unit to fT / cm +evoked_data = evoked.data * 1e13 # change unit to fT / cm frequencies = np.arange(7, 30, 3) # define frequencies of interest Fs = raw.info['sfreq'] # sampling in Hz @@ -61,7 +61,7 @@ import pylab as pl pl.clf() pl.subplots_adjust(0.1, 0.08, 0.96, 0.94, 0.2, 0.63) pl.subplot(3, 1, 1) -pl.plot(times, evoked.T) +pl.plot(times, evoked_data.T) pl.title('Evoked response (%s)' % raw.info['ch_names'][picks[0]]) pl.xlabel('time (ms)') pl.ylabel('Magnetic Field (fT/cm)') -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-mne.git _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
