[med-svn] [python-mne] 191/353: FIX : fix filter with low high pass freq

Yaroslav Halchenko debian at onerussian.com
Fri Nov 27 17:24:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

yoh pushed a commit to tag 0.4
in repository python-mne.

commit 0dd43eac64a44d1f5272b5be675ac1e6ccab9ab4
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date:   Sun Jun 17 15:58:57 2012 +0300

    FIX : fix filter with low high pass freq
---
 mne/filter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mne/filter.py b/mne/filter.py
index 9261c97..074c05e 100644
--- a/mne/filter.py
+++ b/mne/filter.py
@@ -247,7 +247,7 @@ def band_pass_filter(x, Fs, Fp1, Fp2, filter_length=None):
     Fp2 = float(Fp2)
 
     # Default values in Hz
-    Fs1 = Fp1 - 0.5
+    Fs1 = max(Fp1 - 0.5, 0.)
     Fs2 = Fp2 + 0.5
 
     xf = _filter(x, Fs, [0, Fs1, Fp1, Fp2, Fs2, Fs / 2], [0, 0, 1, 1, 0, 0],

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