[med-svn] [python-mne] 299/376: FIX : in Evoked.crop
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 2377d9cc0ec3d06c344063c6f5a154bccf0999f0
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Thu Jun 9 22:31:15 2011 -0400
FIX : in Evoked.crop
---
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 c74b07d..050550d 100644
--- a/mne/fiff/evoked.py
+++ b/mne/fiff/evoked.py
@@ -320,8 +320,8 @@ class Evoked(object):
if tmax is not None:
mask = mask & (times <= tmax)
self.times = times[mask]
- self.first = - int(np.sum(self.times < 0))
- self.last = int(np.sum(self.times > 0))
+ self.first = int(self.times[0] * self.info['sfreq'])
+ self.last = len(self.times) + self.first - 1
self.data = self.data[:, mask]
--
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