Skip to content
Snippets Groups Projects
Commit e74d5b38 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Closes #2

The command line argument is matched to formatting used by MFD to
reconstruct the argument (using .16g) formatting. Ideally, all REAL8
should use this formatting.
parent 115d3c28
No related branches found
No related tags found
No related merge requests found
...@@ -1094,8 +1094,8 @@ transientTauDays={:1.3f}\n""") ...@@ -1094,8 +1094,8 @@ transientTauDays={:1.3f}\n""")
else: else:
data_duration = self.maxStartTime - self.minStartTime data_duration = self.maxStartTime - self.minStartTime
cl_mfd.append('--duration={}'.format(int(data_duration))) cl_mfd.append('--duration={}'.format(int(data_duration)))
cl_mfd.append('--fmin={}'.format(self.fmin)) cl_mfd.append('--fmin={:.16g}'.format(self.fmin))
cl_mfd.append('--Band={}'.format(self.Band)) cl_mfd.append('--Band={:.16g}'.format(self.Band))
cl_mfd.append('--Tsft={}'.format(self.Tsft)) cl_mfd.append('--Tsft={}'.format(self.Tsft))
if self.h0 != 0: if self.h0 != 0:
cl_mfd.append('--injectionSources="{}"'.format(self.config_file_name)) cl_mfd.append('--injectionSources="{}"'.format(self.config_file_name))
......
...@@ -31,9 +31,10 @@ class TestWriter(Test): ...@@ -31,9 +31,10 @@ class TestWriter(Test):
'./TestData/H-4800_H1_1800SFT_Test-700000000-8640000.sft')) './TestData/H-4800_H1_1800SFT_Test-700000000-8640000.sft'))
def test_makefakedata_usecached(self): def test_makefakedata_usecached(self):
Writer = pyfstat.Writer(self.label, outdir=outdir) Writer = pyfstat.Writer(self.label, outdir=outdir, duration=86400)
if os.path.isfile(Writer.sftfilepath): if os.path.isfile(Writer.sftfilepath):
os.remove(Writer.sftfilepath) os.remove(Writer.sftfilepath)
Writer.make_cff()
Writer.run_makefakedata() Writer.run_makefakedata()
time_first = os.path.getmtime(Writer.sftfilepath) time_first = os.path.getmtime(Writer.sftfilepath)
Writer.run_makefakedata() Writer.run_makefakedata()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment