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 ee1585b409607d33fcc19f98ca913c4d49e129ed Author: Alexandre Gramfort <[email protected]> Date: Thu Dec 30 10:55:24 2010 -0500 forgot test file --- fiff/tests/test_cov.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/fiff/tests/test_cov.py b/fiff/tests/test_cov.py new file mode 100644 index 0000000..79ceba5 --- /dev/null +++ b/fiff/tests/test_cov.py @@ -0,0 +1,27 @@ +import os +import os.path as op + +import numpy as np +from numpy.testing import assert_array_almost_equal + +import fiff + +MNE_SAMPLE_DATASET_PATH = os.getenv('MNE_SAMPLE_DATASET_PATH') +fname = op.join(MNE_SAMPLE_DATASET_PATH, 'MEG', 'sample', + 'sample_audvis-cov.fif') + +def test_io_cov(): + """Test IO for noise covariance matrices + """ + fid, tree, _ = fiff.fiff_open(fname) + cov_type = 1 + cov = fiff.read_cov(fid, tree, cov_type) + fid.close() + + fiff.write_cov_file('cov.fif', cov) + + fid, tree, _ = fiff.fiff_open('cov.fif') + cov2 = fiff.read_cov(fid, tree, cov_type) + fid.close() + + print assert_array_almost_equal(cov['data'], cov2['data']) \ No newline at end of file -- 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
