From b5af700f6fff8c5cf72fcf17ae48e535e6db0e4b Mon Sep 17 00:00:00 2001
From: Gregory Ashton <gregory.ashton@ligo.org>
Date: Wed, 20 Dec 2017 12:25:29 +0100
Subject: [PATCH] Fixes error in SemiCoherentGlitchSearch

---
 pyfstat/core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyfstat/core.py b/pyfstat/core.py
index 5c14753..b19f369 100755
--- a/pyfstat/core.py
+++ b/pyfstat/core.py
@@ -1085,7 +1085,7 @@ class SemiCoherentGlitchSearch(ComputeFstat):
         twoFSum = 0
         for i, theta_i_at_tref in enumerate(thetas):
             ts, te = tboundaries[i], tboundaries[i+1]
-            if te - te > 1800:
+            if te - ts > 1800:
                 twoFVal = self.get_fullycoherent_twoF(
                     ts, te, theta_i_at_tref[1], theta_i_at_tref[2],
                     theta_i_at_tref[3], Alpha, Delta)
-- 
GitLab