Commit fcb2d62c authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Fix tests to new sftfilepath interface

parent d7f7aebf
...@@ -92,8 +92,9 @@ class TestComputeFstat(Test): ...@@ -92,8 +92,9 @@ class TestComputeFstat(Test):
Writer.make_data() Writer.make_data()
predicted_FS = Writer.predict_fstat() predicted_FS = Writer.predict_fstat()
search = pyfstat.ComputeFstat(tref=Writer.tref, sftlabel=Writer.label, search = pyfstat.ComputeFstat(
sftdir=Writer.outdir) tref=Writer.tref,
sftfilepath='{}/*{}*sft'.format(Writer.outdir, Writer.label))
FS = search.run_computefstatistic_single_point(Writer.tstart, FS = search.run_computefstatistic_single_point(Writer.tstart,
Writer.tend, Writer.tend,
Writer.F0, Writer.F0,
...@@ -119,8 +120,10 @@ class TestSemiCoherentGlitchSearch(Test): ...@@ -119,8 +120,10 @@ class TestSemiCoherentGlitchSearch(Test):
Writer.make_data() Writer.make_data()
search = pyfstat.SemiCoherentGlitchSearch( search = pyfstat.SemiCoherentGlitchSearch(
label=Writer.label, outdir=Writer.outdir, tref=Writer.tref, label=self.label, outdir=outdir,
tstart=Writer.tstart, tend=Writer.tend, nglitch=1) sftfilepath='{}/*{}*sft'.format(Writer.outdir, Writer.label),
tref=Writer.tref, tstart=Writer.tstart, tend=Writer.tend,
nglitch=1)
FS = search.compute_nglitch_fstat(Writer.F0, Writer.F1, Writer.F2, FS = search.compute_nglitch_fstat(Writer.F0, Writer.F1, Writer.F2,
Writer.Alpha, Writer.Delta, Writer.Alpha, Writer.Delta,
...@@ -177,7 +180,7 @@ class TestMCMCSearch(Test): ...@@ -177,7 +180,7 @@ class TestMCMCSearch(Test):
search = pyfstat.MCMCSearch( search = pyfstat.MCMCSearch(
label=self.label, outdir=outdir, theta_prior=theta, tref=tref, label=self.label, outdir=outdir, theta_prior=theta, tref=tref,
sftlabel=self.label, sftdir=outdir, sftfilepath='{}/*{}*sft'.format(Writer.outdir, Writer.label),
tstart=tstart, tend=tend, nsteps=[100, 100], nwalkers=100, tstart=tstart, tend=tend, nsteps=[100, 100], nwalkers=100,
ntemps=1) ntemps=1)
search.run() search.run()
......
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