[med-svn] [python-mne] 43/52: FIX : allow morphing on data only defined on one hemisphere
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:23:49 UTC 2015
This is an automated email from the git hooks/post-receive script.
yoh pushed a commit to annotated tag v0.2
in repository python-mne.
commit 379aae82a01c9cad932cb33133aa087cb6469529
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Fri Nov 4 21:27:05 2011 -0400
FIX : allow morphing on data only defined on one hemisphere
---
mne/source_estimate.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mne/source_estimate.py b/mne/source_estimate.py
index 5edd92d..5ce0f1f 100644
--- a/mne/source_estimate.py
+++ b/mne/source_estimate.py
@@ -446,7 +446,8 @@ def morph_data(subject_from, subject_to, stc_from, grade=5, smooth=None,
n_vertices = e.shape[0]
e = e + sparse.eye(n_vertices, n_vertices)
idx_use = stc_from.vertno[hemi]
- if len(idx_use)==0: continue
+ if len(idx_use) == 0:
+ continue
n_iter = 100 # max nb of smoothing iterations
for k in range(n_iter):
e_use = e[:, 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