Commit 8d979b1b authored by Gregory Ashton's avatar Gregory Ashton

Adds capability to give a unique tempory filename

parent f93e27b1
...@@ -132,7 +132,7 @@ def _get_dictionary_from_lines(lines, comments, raise_error): ...@@ -132,7 +132,7 @@ def _get_dictionary_from_lines(lines, comments, raise_error):
def predict_fstat(h0, cosi, psi, Alpha, Delta, Freq, sftfilepattern, def predict_fstat(h0, cosi, psi, Alpha, Delta, Freq, sftfilepattern,
minStartTime, maxStartTime, IFO=None, assumeSqrtSX=None, minStartTime, maxStartTime, IFO=None, assumeSqrtSX=None,
**kwargs): tempory_filename='fs.tmp', **kwargs):
""" Wrapper to lalapps_PredictFstat """ Wrapper to lalapps_PredictFstat
Parameters Parameters
...@@ -153,7 +153,6 @@ def predict_fstat(h0, cosi, psi, Alpha, Delta, Freq, sftfilepattern, ...@@ -153,7 +153,6 @@ def predict_fstat(h0, cosi, psi, Alpha, Delta, Freq, sftfilepattern,
The expectation and standard deviation of 2F The expectation and standard deviation of 2F
""" """
tempory_filename = 'fs.tmp'
cl_pfs = [] cl_pfs = []
cl_pfs.append("lalapps_PredictFstat") cl_pfs.append("lalapps_PredictFstat")
......
...@@ -259,7 +259,8 @@ transientTauDays = {:1.3f}\n""") ...@@ -259,7 +259,8 @@ transientTauDays = {:1.3f}\n""")
twoF_expected, twoF_sigma = predict_fstat( twoF_expected, twoF_sigma = predict_fstat(
self.h0, self.cosi, self.psi, self.Alpha, self.Delta, self.F0, self.h0, self.cosi, self.psi, self.Alpha, self.Delta, self.F0,
self.sftfilepath, self.minStartTime, self.maxStartTime, self.sftfilepath, self.minStartTime, self.maxStartTime,
self.detectors, self.sqrtSX) # detectors OR IFO? self.detectors, self.sqrtSX,
tempory_filename='{}.tmp'.format(self.label)) # detectors OR IFO?
return twoF_expected return twoF_expected
......
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