[med-svn] [python-mne] 115/353: FIX: wrong dimension in sample_mean computation

Yaroslav Halchenko debian at onerussian.com
Fri Nov 27 17:24:39 UTC 2015


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 5352e2ba8433395441a735a613c2b24288aae844
Author: Martin Luessi <mluessi at nmr.mgh.harvard.edu>
Date:   Mon Mar 12 12:11:41 2012 -0400

    FIX: wrong dimension in sample_mean computation
---
 mne/cov.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mne/cov.py b/mne/cov.py
index 5a71833..2e066b0 100644
--- a/mne/cov.py
+++ b/mne/cov.py
@@ -252,7 +252,7 @@ def compute_covariance(epochs, keep_sample_mean=True):
     for e in epochs:
         e = e[picks_meeg]
         if not keep_sample_mean:
-            data_mean += np.sum(e, axis=0)
+            data_mean += np.sum(e, axis=1)
         data += np.dot(e, e.T)
         n_samples += e.shape[1]
         n_epochs += 1

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