Skip to content
Snippets Groups Projects
Commit ea0c03d1 authored by Rayne Liu's avatar Rayne Liu
Browse files

8 cores

parent 9cb4ec26
No related branches found
No related tags found
No related merge requests found
...@@ -39,12 +39,12 @@ tshift=10 ...@@ -39,12 +39,12 @@ tshift=10
vary_fund = True vary_fund = True
#sampler parameters #sampler parameters
npoints = 100 npoints = 600
nwalkers = 50 nwalkers = 300
ntemps=16 ntemps=16
dim = nmax+1 dim = nmax+1
ndim = 4*dim ndim = 4*dim
burnin = 50 #How many points do you burn before doing the corner plot. You need to watch the convergence of the chain plot a bit. burnin = 300 #How many points do you burn before doing the corner plot. You need to watch the convergence of the chain plot a bit.
#This is trivial but often forgotten: this cannot be more than npoints! I usually use half the points. #This is trivial but often forgotten: this cannot be more than npoints! I usually use half the points.
numbins = 42 #corner plot parameter - how many bins you want numbins = 42 #corner plot parameter - how many bins you want
datacolor = '#105670' #'#4fa3a7' datacolor = '#105670' #'#4fa3a7'
...@@ -175,7 +175,7 @@ def log_prior(theta): ...@@ -175,7 +175,7 @@ def log_prior(theta):
if all([-0.06 <= alpha0 <= 0.06, -0.32 <= alpha1 <= -0.08, -0.19 <= beta0 <= 1.0, 0. <= beta1 <= 1.5, 0 <= xvar0 <= 1.1, 0 <= xvar1 <= 1.2, -np.pi <= yvar0 <= np.pi, -np.pi <= yvar1 <= np.pi]): if all([-0.06 <= alpha0 <= 0.06, -0.32 <= alpha1 <= -0.08, -0.19 <= beta0 <= 1.0, 0. <= beta1 <= 1.5, 0 <= xvar0 <= 1.1, 0 <= xvar1 <= 1.2, -np.pi <= yvar0 <= np.pi, -np.pi <= yvar1 <= np.pi]):
return 0.0 return 0.0
elif tshift == 10: elif tshift == 10:
if all([-0.08 <= alpha0 <= 0.12, -0.6 <= alpha1 <= 0.4, -0.3 <= beta0 <= 1.5, -1. <= beta1 <= 3.2, 0 <= xvar0 <= 1.1, 0 <= xvar1 <= 1.2, -np.pi <= yvar0 <= np.pi, -np.pi <= yvar1 <= np.pi]): if all([-0.04 <= alpha0 <= 0.04, -0.1 <= alpha1 <= 0.15, -0.4 <= beta0 <= 0.4, -1. <= beta1 <= 2, 0 <= xvar0 <= 1.1, 0 <= xvar1 <= 1.2, -np.pi <= yvar0 <= np.pi, -np.pi <= yvar1 <= np.pi]):
return 0.0 return 0.0
""" """
if nmax == 0: if nmax == 0:
......
File mode changed from 100644 to 100755
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment