From eff474961430653201d07af64f5cb2f578719251 Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Tue, 28 Feb 2017 16:16:12 +0100 Subject: [PATCH] Comments out obsolete peice of code As far as I can tell this should not be here (transient=True) in this case. Nevertheless, I'm leaving it commented as this is quite a core routine and I wish to remind myself to investigate it further. --- pyfstat/core.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pyfstat/core.py b/pyfstat/core.py index 152c758..cea5026 100755 --- a/pyfstat/core.py +++ b/pyfstat/core.py @@ -562,16 +562,15 @@ class SemiCoherentSearch(BaseSearchClass, ComputeFstat): self.whatToCompute ) - if self.transient is False: - if self.BSGL is False: - return self.FstatResults.twoF[0] - - twoF = np.float(self.FstatResults.twoF[0]) - self.twoFX[0] = self.FstatResults.twoFPerDet(0) - self.twoFX[1] = self.FstatResults.twoFPerDet(1) - log10_BSGL = lalpulsar.ComputeBSGL(twoF, self.twoFX, - self.BSGLSetup) - return log10_BSGL/np.log10(np.exp(1)) + #if self.transient is False: + # if self.BSGL is False: + # return self.FstatResults.twoF[0] + # twoF = np.float(self.FstatResults.twoF[0]) + # self.twoFX[0] = self.FstatResults.twoFPerDet(0) + # self.twoFX[1] = self.FstatResults.twoFPerDet(1) + # log10_BSGL = lalpulsar.ComputeBSGL(twoF, self.twoFX, + # self.BSGLSetup) + # return log10_BSGL/np.log10(np.exp(1)) detStat = 0 for tstart, tend in zip(self.tboundaries[:-1], self.tboundaries[1:]): -- GitLab