Skip to content
Snippets Groups Projects
Commit 69c31083 authored by David Keitel's avatar David Keitel
Browse files

pass ephemerides through to PredictFstat

parent 2149448c
No related branches found
No related tags found
No related merge requests found
......@@ -159,6 +159,8 @@ def predict_fstat(
IFOs=None,
assumeSqrtSX=None,
tempory_filename="fs.tmp",
earth_ephem=None,
sun_ephem=None,
**kwargs
):
""" Wrapper to lalapps_PredictFstat
......@@ -201,6 +203,11 @@ def predict_fstat(
cl_pfs.append("--maxStartTime={}".format(int(maxStartTime)))
cl_pfs.append("--outputFstat={}".format(tempory_filename))
if earth_ephem is not None:
cl_pfs.append("--ephemEarth='{}'".format(earth_ephem))
if sun_ephem is not None:
cl_pfs.append("--ephemSun='{}'".format(sun_ephem))
cl_pfs = " ".join(cl_pfs)
helper_functions.run_commandline(cl_pfs)
d = read_par(filename=tempory_filename)
......
......@@ -377,6 +377,8 @@ transientTau = {:10.0f}\n"""
self.detectors,
self.sqrtSX,
tempory_filename="{}.tmp".format(self.label),
earth_ephem=self.earth_ephem,
sun_ephem=self.sun_ephem
) # detectors OR IFO?
return twoF_expected
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment