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

Change functionaliy of uniform prior to allow figures to be modified

parent 1ebf9534
......@@ -236,19 +236,20 @@ class GridSearch(BaseSearchClass):
class GridUniformPriorSearch():
def __init__(self, theta_prior, NF0, NF1, label, outdir, sftfilepath,
tref, minStartTime, maxStartTime, BSGL=False, detectors=None,
tref, minStartTime, maxStartTime, BSGL=False, detectors=None):
dF0 = (theta_prior['F0']['upper'] - theta_prior['F0']['lower'])/NF0
dF1 = (theta_prior['F1']['upper'] - theta_prior['F1']['lower'])/NF1
F0s = [theta_prior['F0']['lower'], theta_prior['F0']['upper'], dF0]
F1s = [theta_prior['F1']['lower'], theta_prior['F1']['upper'], dF1]
search = GridSearch( = GridSearch(
label, outdir, sftfilepath, F0s=F0s, F1s=F1s, tref=tref,
Alphas=[theta_prior['Alpha']], Deltas=[theta_prior['Delta']],
minStartTime=minStartTime, maxStartTime=maxStartTime, BSGL=BSGL,
search.plot_2D('F0', 'F1', **kwargs)
def run(self, **kwargs):
return'F0', 'F1', **kwargs)
class GridGlitchSearch(GridSearch):
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