[med-svn] [python-mne] 116/353: cov was still wrong
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:24:40 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 0e93b02a371000232467e032bebc36eb49f71047
Author: Martin Luessi <mluessi at nmr.mgh.harvard.edu>
Date: Mon Mar 12 12:33:32 2012 -0400
cov was still wrong
---
mne/cov.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mne/cov.py b/mne/cov.py
index 2e066b0..b0776fd 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=1)
+ data_mean += np.sum(e, axis=1)[:, np.newaxis]
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