Commit ba043199 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Fix bug in twoF cumulative

If the given tstart is before the minStartTime this will error - so
instead, select the minStartTime
parent 569c11f4
......@@ -531,6 +531,7 @@ class ComputeFstat(object):
"""
SFTminStartTime = self.SFT_timestamps[0]
SFTmaxStartTime = self.SFT_timestamps[-1]
tstart = np.max([SFTminStartTime, tstart])
min_tau = np.max([SFTminStartTime - tstart, 0]) + 3600*6
max_tau = SFTmaxStartTime - tstart
taus = np.linspace(min_tau, max_tau, npoints)
......
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