[med-svn] [python-mne] 221/376: bug fix
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:22:43 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 8cf0a1a2faaccb83baee5d187bbe543d77cecbfb
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Tue Apr 26 14:19:17 2011 -0400
bug fix
---
mne/epochs.py | 2 +-
mne/minimum_norm/inverse.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mne/epochs.py b/mne/epochs.py
index ae21b78..c61f205 100755
--- a/mne/epochs.py
+++ b/mne/epochs.py
@@ -142,7 +142,7 @@ class Epochs(object):
dest_comp = current_comp
if current_comp != dest_comp:
- raw.comp = fiff.raw.make_compensator(raw.info, current_comp,
+ raw['comp'] = fiff.raw.make_compensator(raw.info, current_comp,
dest_comp)
print 'Appropriate compensator added to change to grade %d.' % (
dest_comp)
diff --git a/mne/minimum_norm/inverse.py b/mne/minimum_norm/inverse.py
index 48060b9..0495fb7 100755
--- a/mne/minimum_norm/inverse.py
+++ b/mne/minimum_norm/inverse.py
@@ -348,7 +348,7 @@ def prepare_inverse_operator(orig, nave, lambda2, dSPM):
#
inv['whitener'] = np.zeros((inv['noise_cov']['dim'],
inv['noise_cov']['dim']))
- if inv['noise_cov']['diag'] == 0:
+ if not inv['noise_cov']['diag']:
#
# Omit the zeroes due to projection
#
--
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