Commit 0c41b602 authored by David Keitel's avatar David Keitel
Browse files

gridsearch: add maxL t0,tau to main results file if transientWindowType

parent 2834bb6e
......@@ -164,12 +164,18 @@ class GridSearch(BaseSearchClass):
detstat =*vals)
windowRange = getattr(, 'windowRange', None)
FstatMap = getattr(, 'FstatMap', None)
data.append(list(vals) + [detstat])
if self.outputTransientFstatMap and self.transientWindowType:
thisCand = list(vals) + [detstat]
if self.transientWindowType:
if self.outputTransientFstatMap:
tCWfile = os.path.splitext(self.out_file)[0]+'_tCW_%.16f_%.16f_%.16f_%.16g_%.16g.dat' % (vals[2],vals[5],vals[6],vals[3],vals[4]) # freq alpha delta f1dot f2dot
fo = lal.FileOpen(tCWfile, 'w')
lalpulsar.write_transientFstatMap_to_fp ( fo, FstatMap, windowRange, None )
del fo # instead of lal.FileClose() which is not SWIG-exported
Fmn =
maxidx = np.unravel_index(Fmn.argmax(), Fmn.shape)
thisCand += [windowRange.t0+maxidx[0]*windowRange.dt0,
data = np.array(data, dtype=np.float)
if return_data:
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