[med-svn] [python-mne] 363/376: FIX : fix svd without full_matrices=False

Yaroslav Halchenko debian at onerussian.com
Fri Nov 27 17:23:22 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 eff54af68f4038b3368cde010e14bceb50bdf728
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date:   Fri Sep 16 21:50:35 2011 -0400

    FIX : fix svd without full_matrices=False
---
 examples/time_frequency/plot_source_label_time_frequency.py | 3 ++-
 mne/minimum_norm/time_frequency.py                          | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/examples/time_frequency/plot_source_label_time_frequency.py b/examples/time_frequency/plot_source_label_time_frequency.py
index 17621d4..673711f 100644
--- a/examples/time_frequency/plot_source_label_time_frequency.py
+++ b/examples/time_frequency/plot_source_label_time_frequency.py
@@ -4,7 +4,8 @@ Compute power and phase lock in label of the source space
 =========================================================
 
 Returns time-frequency maps of induced power and phase lock
-in the source space. The inverse method is linear based on dSPM inverse operator.
+in the source space. The inverse method is linear based on dSPM inverse
+operator.
 
 """
 # Authors: Alexandre Gramfort <gramfort at nmr.mgh.harvard.edu>
diff --git a/mne/minimum_norm/time_frequency.py b/mne/minimum_norm/time_frequency.py
index b596046..5d38a8a 100644
--- a/mne/minimum_norm/time_frequency.py
+++ b/mne/minimum_norm/time_frequency.py
@@ -190,7 +190,7 @@ def _source_induced_power(epochs, inverse_operator, frequencies, label=None,
     K, noise_norm, lh_vertno, rh_vertno = _assemble_kernel(inv, label, dSPM)
 
     if pca:
-        U, s, Vh = linalg.svd(K)
+        U, s, Vh = linalg.svd(K, full_matrices=False)
         rank = np.sum(s > 1e-8 * s[0])
         K = s[:rank] * U[:, :rank]
         Vh = Vh[:rank]

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