[med-svn] [python-mne] 100/376: adding test for label handling

Yaroslav Halchenko debian at onerussian.com
Fri Nov 27 17:22:16 UTC 2015


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 e485bdc30ea240e2dedfbbb242f9a033b2b7479a
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date:   Mon Feb 28 21:25:08 2011 -0500

    adding test for label handling
---
 mne/tests/test_label.py | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/mne/tests/test_label.py b/mne/tests/test_label.py
new file mode 100644
index 0000000..4ea5894
--- /dev/null
+++ b/mne/tests/test_label.py
@@ -0,0 +1,19 @@
+import os.path as op
+
+import mne
+from mne.datasets import sample
+
+examples_folder = op.join(op.dirname(__file__), '..', '..', 'examples')
+data_path = sample.data_path(examples_folder)
+stc_fname = op.join(data_path, 'MEG', 'sample', 'sample_audvis-meg-lh.stc')
+label = 'Aud-lh'
+label_fname = op.join(data_path, 'MEG', 'sample', 'labels', '%s.label' % label)
+
+def test_label_io_and_time_course_estimates():
+    """Test IO for STC files
+    """
+
+    values, times, vertices = mne.label_time_courses(label_fname, stc_fname)
+
+    assert len(times) == values.shape[1]
+    assert len(vertices) == values.shape[0]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-mne.git



More information about the debian-med-commit mailing list