[med-svn] [python-mne] 276/376: TEST : for pca in source_induced_power

Yaroslav Halchenko debian at onerussian.com
Fri Nov 27 17:23:05 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 afeb01de8e185747947c18db6277bf93444b642d
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date:   Fri May 27 17:49:00 2011 -0400

    TEST : for pca in source_induced_power
---
 mne/minimum_norm/tests/test_time_frequency.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/mne/minimum_norm/tests/test_time_frequency.py b/mne/minimum_norm/tests/test_time_frequency.py
index f829ae7..3622b90 100644
--- a/mne/minimum_norm/tests/test_time_frequency.py
+++ b/mne/minimum_norm/tests/test_time_frequency.py
@@ -45,9 +45,14 @@ def test_tfr_with_inverse_operator():
     bands = dict(alpha=[10, 10])
 
     stcs = source_induced_power(epochs, inverse_operator, bands, n_cycles=2,
-                                use_fft=False)
+                                use_fft=False, pca=True)
 
     stc = stcs['alpha']
     assert len(stcs) == len(bands.keys())
     assert np.all(stc.data > 0)
     assert_array_almost_equal(stc.times, epochs.times)
+
+    stcs_no_pca = source_induced_power(epochs, inverse_operator, bands, n_cycles=2,
+                                use_fft=False, pca=False)
+
+    assert_array_almost_equal(stcs['alpha'].data, stcs_no_pca['alpha'].data)

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