[med-svn] [python-mne] 10/353: FIX : in stc_to_label

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


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 c890cbd5c34f0eade772a04322f0826e8f3c8b8b
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date:   Fri Nov 11 17:03:56 2011 -0500

    FIX : in stc_to_label
---
 mne/label.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mne/label.py b/mne/label.py
index 2675d65..1b8e937 100644
--- a/mne/label.py
+++ b/mne/label.py
@@ -206,6 +206,8 @@ def stc_to_label(stc, src, smooth=5):
         cnt += len(this_vertno)
         e = e + sparse.eye(n_vertices, n_vertices)
         idx_use = this_vertno[np.any(this_data, axis=1)]
+        if len(idx_use) == 0:
+            continue
         for k in range(smooth):
             e_use = e[:, idx_use]
             data1 = e_use * np.ones(len(idx_use))

-- 
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