This is an automated email from the git hooks/post-receive script. yoh pushed a commit to tag 0.4 in repository python-mne.
commit 9d1c2e1a55e60bcaf8483fd31010114b42931c19 Author: Alexandre Gramfort <[email protected]> Date: Thu Apr 12 11:43:00 2012 +0200 ENH : append existing projections to generated proj in mne_compute_proj_ecg.py --- bin/mne_compute_proj_ecg.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/mne_compute_proj_ecg.py b/bin/mne_compute_proj_ecg.py index 7f4fec2..9ddb9fc 100755 --- a/bin/mne_compute_proj_ecg.py +++ b/bin/mne_compute_proj_ecg.py @@ -66,7 +66,9 @@ def compute_proj_ecg(in_fif_fname, tmin, tmax, n_grad, n_mag, n_eeg, l_freq, raw.band_pass_filter(picks, l_freq, h_freq, filter_length, n_jobs) epochs = mne.Epochs(raw, ecg_events, None, tmin, tmax, baseline=None, - picks=picks, reject=reject) + picks=picks, reject=reject, proj=True) + + projs_init = raw.info['projs'] if average: evoked = epochs.average() @@ -80,7 +82,7 @@ def compute_proj_ecg(in_fif_fname, tmin, tmax, n_grad, n_mag, n_eeg, l_freq, os.remove(preload) print "Writing ECG projections in %s" % ecg_proj_fname - mne.write_proj(ecg_proj_fname, projs) + mne.write_proj(ecg_proj_fname, projs + projs_init) print 'Done.' -- 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
