aboutsummaryrefslogtreecommitdiffstats
path: root/fr.py
diff options
context:
space:
mode:
authorshivesh <s.p.mandalia@qmul.ac.uk>2018-04-06 17:21:57 -0500
committershivesh <s.p.mandalia@qmul.ac.uk>2018-04-06 17:21:57 -0500
commitccffb521195eb5f41471e166e1ba8f695740bcb3 (patch)
tree28734a167b71a1d3f2a438fb09835de11aa730df /fr.py
parent30fddc32cfd5af1fc1f49de2e91b39c81cdf10e2 (diff)
downloadGolemFlavor-ccffb521195eb5f41471e166e1ba8f695740bcb3.tar.gz
GolemFlavor-ccffb521195eb5f41471e166e1ba8f695740bcb3.zip
add test scripts for Golem LV and NSI
Diffstat (limited to 'fr.py')
-rwxr-xr-xfr.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/fr.py b/fr.py
index c5dffaf..2de310c 100755
--- a/fr.py
+++ b/fr.py
@@ -21,7 +21,7 @@ from utils import gf as gf_utils
from utils import likelihood as llh_utils
from utils import mcmc as mcmc_utils
from utils import misc as misc_utils
-from utils.enums import Likelihood, ParamTag
+from utils.enums import Likelihood, MCMCSeedType, ParamTag
from utils.fr import MASS_EIGENVALUES, normalise_fr
from utils.misc import Param, ParamSet
from utils.plot import plot_argparse, chainer_plot
@@ -219,10 +219,14 @@ def main():
ndim = len(mcmc_paramset)
ntemps = 1
- # p0 = mcmc_utils.gaussian_seed(
- p0 = mcmc_utils.flat_seed(
- mcmc_paramset, ntemps=ntemps, nwalkers=args.nwalkers
- )
+ if args.mcmc_seed_type == MCMCSeedType.UNIFORM:
+ p0 = mcmc_utils.flat_seed(
+ mcmc_paramset, ntemps=ntemps, nwalkers=args.nwalkers
+ )
+ elif args.mcmc_seed_type == MCMCSeedType.GAUSSIAN:
+ p0 = mcmc_utils.gaussian_seed(
+ mcmc_paramset, ntemps=ntemps, nwalkers=args.nwalkers
+ )
samples = mcmc_utils.mcmc(
p0 = p0,