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 <[email protected]> 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 _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
