[med-svn] [python-mne] 331/376: FIX: Isotrak does not throw an Exception when not found
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:23:17 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 31eb147b9a41d24908196c92425043ab8fa950fa
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Thu Aug 4 09:52:59 2011 -0400
FIX: Isotrak does not throw an Exception when not found
---
mne/fiff/meas_info.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mne/fiff/meas_info.py b/mne/fiff/meas_info.py
index bd168cf..7e6f516 100644
--- a/mne/fiff/meas_info.py
+++ b/mne/fiff/meas_info.py
@@ -3,6 +3,7 @@
#
# License: BSD (3-clause)
+from warnings import warn
import numpy as np
from scipy import linalg
@@ -130,9 +131,9 @@ def read_meas_info(fid, tree):
isotrak = dir_tree_find(meas_info, FIFF.FIFFB_ISOTRAK)
dig = None
if len(isotrak) == 0:
- raise ValueError('Isotrak not found')
+ print 'Isotrak not found'
if len(isotrak) > 1:
- raise ValueError('Multiple Isotrak found')
+ warn('Multiple Isotrak found')
else:
isotrak = isotrak[0]
dig = []
--
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