Commit 5a391e85 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

If a nan is returned, return 0 instead

A hack fix for the internal error in LALSUITE - this should be reversed
once we have solved the fundamental issue: if the data contains no sfts
for that period, return 0 not nan
parent 5d2ec3e5
......@@ -440,7 +440,11 @@ class ComputeFstat(object):
self.FstatResults.multiFatoms[0], self.windowRange, False)
if self.BSGL is False:
return 2*FS.F_mn.data[0][0]
twoF = 2*FS.F_mn.data[0][0]
if np.isnan(twoF):
return 0
else:
return twoF
FstatResults_single = copy.copy(self.FstatResults)
FstatResults_single.lenth = 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment