diff options
| author | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-11-08 15:02:27 -0600 |
|---|---|---|
| committer | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-11-08 15:02:27 -0600 |
| commit | 845c55c269a59620bbf8a6c0d8adab575e1185dc (patch) | |
| tree | a8175935ba96947abc0ab678ce454bc938e3fd15 /fr.py | |
| parent | 4f358ee507c06c1ccbce472817f4eeac8da5cfa0 (diff) | |
| download | GolemFlavor-845c55c269a59620bbf8a6c0d8adab575e1185dc.tar.gz GolemFlavor-845c55c269a59620bbf8a6c0d8adab575e1185dc.zip | |
Thu 8 Nov 15:02:27 CST 2018
Diffstat (limited to 'fr.py')
| -rwxr-xr-x | fr.py | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -10,6 +10,7 @@ HESE BSM flavour ratio MCMC analysis script from __future__ import absolute_import, division +import os import argparse from functools import partial @@ -81,8 +82,8 @@ def nuisance_argparse(parser): def process_args(args): """Process the input args.""" - if args.fix_mixing is not MixingScenario.NONE and args.fix_scale: - raise NotImplementedError('Fixed mixing and scale not implemented') + # if args.fix_mixing is not MixingScenario.NONE and args.fix_scale: + # raise NotImplementedError('Fixed mixing and scale not implemented') if args.fix_mixing is not MixingScenario.NONE and args.fix_mixing_almost: raise NotImplementedError( '--fix-mixing and --fix-mixing-almost cannot be used together' @@ -165,6 +166,12 @@ def main(): llh_paramset, nwalkers=args.nwalkers ) + if args.save_measured_fr: + n = misc_utils.gen_identifier(args) + '.txt' + f = args.output_measured_fr + n + if os.path.isfile(f): + open(f, 'w').close() + samples = mcmc_utils.mcmc( p0 = p0, ln_prob = ln_prob, @@ -172,6 +179,7 @@ def main(): nwalkers = args.nwalkers, burnin = args.burnin, nsteps = args.nsteps, + args = args, threads = 1 # TODO(shivesh): broken because you cannot pickle a GolemFitPy object # threads = misc_utils.thread_factors(args.threads)[0] |
