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
......@@ -1094,8 +1094,8 @@ transientTauDays={:1.3f}\n""")
else:
data_duration = self.maxStartTime - self.minStartTime
cl_mfd.append('--duration={}'.format(int(data_duration)))
cl_mfd.append('--fmin={}'.format(self.fmin))
cl_mfd.append('--Band={}'.format(self.Band))
cl_mfd.append('--fmin={:.16g}'.format(self.fmin))
cl_mfd.append('--Band={:.16g}'.format(self.Band))
cl_mfd.append('--Tsft={}'.format(self.Tsft))
if self.h0 != 0:
cl_mfd.append('--injectionSources="{}"'.format(self.config_file_name))
......
......@@ -31,9 +31,10 @@ class TestWriter(Test):
'./TestData/H-4800_H1_1800SFT_Test-700000000-8640000.sft'))
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):
os.remove(Writer.sftfilepath)
Writer.make_cff()
Writer.run_makefakedata()
time_first = os.path.getmtime(Writer.sftfilepath)
Writer.run_makefakedata()
......
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