Commit 69c31083 authored by David Keitel's avatar David Keitel
Browse files

pass ephemerides through to PredictFstat

parent 2149448c
...@@ -159,6 +159,8 @@ def predict_fstat( ...@@ -159,6 +159,8 @@ def predict_fstat(
IFOs=None, IFOs=None,
assumeSqrtSX=None, assumeSqrtSX=None,
tempory_filename="fs.tmp", tempory_filename="fs.tmp",
earth_ephem=None,
sun_ephem=None,
**kwargs **kwargs
): ):
""" Wrapper to lalapps_PredictFstat """ Wrapper to lalapps_PredictFstat
...@@ -201,6 +203,11 @@ def predict_fstat( ...@@ -201,6 +203,11 @@ def predict_fstat(
cl_pfs.append("--maxStartTime={}".format(int(maxStartTime))) cl_pfs.append("--maxStartTime={}".format(int(maxStartTime)))
cl_pfs.append("--outputFstat={}".format(tempory_filename)) 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) cl_pfs = " ".join(cl_pfs)
helper_functions.run_commandline(cl_pfs) helper_functions.run_commandline(cl_pfs)
d = read_par(filename=tempory_filename) d = read_par(filename=tempory_filename)
......
...@@ -377,6 +377,8 @@ transientTau = {:10.0f}\n""" ...@@ -377,6 +377,8 @@ transientTau = {:10.0f}\n"""
self.detectors, self.detectors,
self.sqrtSX, self.sqrtSX,
tempory_filename="{}.tmp".format(self.label), tempory_filename="{}.tmp".format(self.label),
earth_ephem=self.earth_ephem,
sun_ephem=self.sun_ephem
) # detectors OR IFO? ) # detectors OR IFO?
return twoF_expected return twoF_expected
......
Supports Markdown
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