From 8d979b1ba6b5e62054dbf29166ea6cc5f1924a62 Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Thu, 8 Feb 2018 09:26:55 +1100 Subject: [PATCH] Adds capability to give a unique tempory filename --- pyfstat/core.py | 3 +-- pyfstat/make_sfts.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfstat/core.py b/pyfstat/core.py index b19f369..1e74522 100755 --- a/pyfstat/core.py +++ b/pyfstat/core.py @@ -132,7 +132,7 @@ def _get_dictionary_from_lines(lines, comments, raise_error): def predict_fstat(h0, cosi, psi, Alpha, Delta, Freq, sftfilepattern, minStartTime, maxStartTime, IFO=None, assumeSqrtSX=None, - **kwargs): + tempory_filename='fs.tmp', **kwargs): """ Wrapper to lalapps_PredictFstat Parameters @@ -153,7 +153,6 @@ def predict_fstat(h0, cosi, psi, Alpha, Delta, Freq, sftfilepattern, The expectation and standard deviation of 2F """ - tempory_filename = 'fs.tmp' cl_pfs = [] cl_pfs.append("lalapps_PredictFstat") diff --git a/pyfstat/make_sfts.py b/pyfstat/make_sfts.py index 5e47b56..c3a1812 100644 --- a/pyfstat/make_sfts.py +++ b/pyfstat/make_sfts.py @@ -259,7 +259,8 @@ transientTauDays = {:1.3f}\n""") twoF_expected, twoF_sigma = predict_fstat( self.h0, self.cosi, self.psi, self.Alpha, self.Delta, self.F0, 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 -- GitLab