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 9c5d3e795751aae3b3622212a7b60fb767e6fd4b
Author: Alexandre Gramfort <[email protected]>
Date:   Fri May 27 17:18:01 2011 -0400

    FIX : bug with pca in source_induced_power
---
 mne/minimum_norm/time_frequency.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mne/minimum_norm/time_frequency.py 
b/mne/minimum_norm/time_frequency.py
index 9d5b5c5..8acb3d4 100644
--- a/mne/minimum_norm/time_frequency.py
+++ b/mne/minimum_norm/time_frequency.py
@@ -138,7 +138,7 @@ def source_induced_power(epochs, inverse_operator, bands, 
lambda2=1.0 / 9.0,
     if pca:
         U, s, Vh = linalg.svd(K)
         rank = np.sum(s > 1e-8*s[0])
-        K = np.dot(K, s[:rank] * U[:, :rank])
+        K = s[:rank] * U[:, :rank]
         Vh = Vh[:rank]
         print 'Reducing data rank to %d' % rank
     else:

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

Reply via email to