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 3fd04c0b95dbf9acdc58371c32041775a22588e7
Author: Alexandre Gramfort <[email protected]>
Date:   Mon Apr 18 11:05:55 2011 -0400

    FIX : rejecting cropped epochs
---
 mne/epochs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mne/epochs.py b/mne/epochs.py
index 1b0d629..313f0c8 100755
--- a/mne/epochs.py
+++ b/mne/epochs.py
@@ -245,7 +245,7 @@ class Epochs(object):
             e = self._get_epoch_from_disk(k)
             if ((self.reject is not None or self.flat is not None) and
                 not _is_good(e, self.ch_names, self._channel_type_idx,
-                         self.reject, self.flat)):
+                         self.reject, self.flat)) or e.shape[1] < n_times:
                 n_reject += 1
             else:
                 data[cnt] = self._get_epoch_from_disk(k)

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/debian-med/python-mne.git

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to