[med-svn] [python-mne] 204/376: FIX : rejecting cropped epochs

Yaroslav Halchenko debian at onerussian.com
Fri Nov 27 17:22:37 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 3fd04c0b95dbf9acdc58371c32041775a22588e7
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
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



More information about the debian-med-commit mailing list