[med-svn] [python-mne] 74/353: ENH : ignore loose param with fixed orient forward
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:24:33 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 f1196712c5502a33224fa7121b4443113d9bd87a
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Sat Feb 4 11:33:04 2012 +0100
ENH : ignore loose param with fixed orient forward
---
mne/minimum_norm/inverse.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mne/minimum_norm/inverse.py b/mne/minimum_norm/inverse.py
index 56f1555..90eb195 100644
--- a/mne/minimum_norm/inverse.py
+++ b/mne/minimum_norm/inverse.py
@@ -850,6 +850,8 @@ def make_inverse_operator(info, forward, noise_cov, loose=0.2, depth=0.8):
if is_fixed_ori and loose is not None:
warnings.warn('Ignoring loose parameter with forward operator with '
'fixed orientation.')
+ loose = None
+
if not forward['surf_ori'] and loose is not None:
raise ValueError('Forward operator is not oriented in surface '
'coordinates. loose parameter should be None '
--
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