[med-svn] [python-mne] 297/376: fix
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:23:09 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 11a4ecf0284fe1806b9bec3835670535dc33abba
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Thu Jun 9 18:00:22 2011 -0400
fix
---
mne/fiff/evoked.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mne/fiff/evoked.py b/mne/fiff/evoked.py
index 8e939a3..618c808 100644
--- a/mne/fiff/evoked.py
+++ b/mne/fiff/evoked.py
@@ -183,16 +183,16 @@ class Evoked(object):
print '\t\tnave = %d - aspect type = %d' % (nave, aspect_kind)
nepoch = len(epoch)
- if nepoch != 1 and nepoch != info.nchan:
+ if nepoch != 1 and nepoch != info['nchan']:
fid.close()
raise ValueError('Number of epoch tags is unreasonable '
- '(nepoch = %d nchan = %d)' % (nepoch, info.nchan))
+ '(nepoch = %d nchan = %d)' % (nepoch, info['nchan']))
if nepoch == 1:
# Only one epoch
all_data = epoch[0].data
# May need a transpose if the number of channels is one
- if all_data.shape[1] == 1 and info.nchan == 1:
+ if all_data.shape[1] == 1 and info['nchan'] == 1:
all_data = all_data.T
else:
--
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