aboutsummaryrefslogtreecommitdiffstats
path: root/mc_unitary.py
diff options
context:
space:
mode:
authorshivesh <s.p.mandalia@qmul.ac.uk>2019-04-30 18:18:13 +0100
committershivesh <s.p.mandalia@qmul.ac.uk>2019-04-30 18:18:13 +0100
commit6ea8ab99183811393b02ff3014fac8f7cc6b6c2b (patch)
tree1a0f0877388576166785449431c7dfc2c0d16a47 /mc_unitary.py
parentd610bc9b7ffcb493dd10571dbfb3016ebad7387c (diff)
downloadGolemFlavor-6ea8ab99183811393b02ff3014fac8f7cc6b6c2b.tar.gz
GolemFlavor-6ea8ab99183811393b02ff3014fac8f7cc6b6c2b.zip
make mc_x script
Diffstat (limited to 'mc_unitary.py')
-rwxr-xr-xmc_unitary.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/mc_unitary.py b/mc_unitary.py
index af0220a..12a2db2 100755
--- a/mc_unitary.py
+++ b/mc_unitary.py
@@ -118,18 +118,6 @@ def gen_identifier(args):
return f
-def gen_figtext(args, asimov_paramset):
- f = ''
- f += 'Source ratio = {0}'.format(
- misc_utils.solve_ratio(args.source_ratio)
- )
- for param in asimov_paramset:
- f += '\nInjected {0:20s} = {1:.3f}'.format(
- param.name, param.nominal_value
- )
- return f
-
-
def triangle_llh(theta, args, hypo_paramset):
"""Log likelihood function for a given theta."""
if len(theta) != len(hypo_paramset):
@@ -205,16 +193,6 @@ def main():
)
mcmc_utils.save_chains(frs, outfile)
- of = outfile[:5]+outfile[5:].replace('data', 'plots')+'_posterior'
- plot_utils.chainer_plot(
- infile = outfile+'.npy',
- outfile = of,
- outformat = ['png'],
- args = args,
- llh_paramset = hypo_paramset,
- fig_text = gen_figtext(args, hypo_paramset)
- )
-
print "DONE!"