[med-svn] [python-mne] 300/376: ENH : store sfreq and nchan as float and int in Evoked

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 929a53c373e99a57c2a43e7050742f1f2fa7624c
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date:   Thu Jun 9 22:53:33 2011 -0400

    ENH : store sfreq and nchan as float and int in Evoked
---
 mne/fiff/evoked.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mne/fiff/evoked.py b/mne/fiff/evoked.py
index 050550d..bde77b0 100644
--- a/mne/fiff/evoked.py
+++ b/mne/fiff/evoked.py
@@ -123,10 +123,10 @@ class Evoked(object):
                 last = int(tag.data)
             elif kind == FIFF.FIFF_NCHAN:
                 tag = read_tag(fid, pos)
-                nchan = tag.data
+                nchan = int(tag.data)
             elif kind == FIFF.FIFF_SFREQ:
                 tag = read_tag(fid, pos)
-                sfreq = tag.data
+                sfreq = float(tag.data)
             elif kind == FIFF.FIFF_CH_INFO:
                 tag = read_tag(fid, pos)
                 chs.append(tag.data)

-- 
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