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 7b306cddb4834edc7aa476eb02a81ef9f508307c Author: Alexandre Gramfort <[email protected]> Date: Thu Dec 30 14:02:20 2010 -0500 example IO evoked --- examples/read_evoked.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/read_evoked.py b/examples/read_evoked.py index 08a3946..7aec99e 100644 --- a/examples/read_evoked.py +++ b/examples/read_evoked.py @@ -1,4 +1,4 @@ -"""Reading an evoked file +"""Reading and writing an evoked file """ print __doc__ @@ -6,13 +6,11 @@ import fiff fname = 'MNE-sample-data/MEG/sample/sample_audvis-ave.fif' +# Reading data = fiff.read_evoked(fname) +# Writing fiff.write_evoked('evoked.fif', data) -data2 = fiff.read_evoked('evoked.fif') - -from scipy import linalg -print linalg.norm(data['evoked']['epochs'] - data2['evoked']['epochs']) ############################################################################### # Show result -- 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
