Skip to content

Commit

Permalink
delete [0] from outputMR()[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunHuangPhy committed Nov 8, 2024
1 parent fd8921a commit cc82c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions InferenceWorkflow/Likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def MRlikihood_kernel(eps_total,pres_total,x,d1):
else:
d1 = 10**(d1)
if all(x<y for x,y in zip(eps_total[:], eps_total[1:])) and all(x<y for x, y in zip(pres_total[:], pres_total[1:])):
MR = main.OutputMR("",eps_total,pres_total,[d1*g_cm_3])[0]
MR = main.OutputMR("",eps_total,pres_total,[d1*g_cm_3])
if len(MR) == False:
likelihood = -1e101
else:
Expand Down Expand Up @@ -144,7 +144,7 @@ def Masslikihood_Gaussian(eps_total,pres_total,x,d1):
else:
d1 = 10**(d1)
if all(x<y for x,y in zip(eps_total[:], eps_total[1:])) and all(x<y for x, y in zip(pres_total[:], pres_total[1:])):
MR = main.OutputMR("",eps_total,pres_total,[d1*g_cm_3])[0]
MR = main.OutputMR("",eps_total,pres_total,[d1*g_cm_3])
if len(MR) == False:
likelihood = -1e101
else:
Expand Down

0 comments on commit cc82c5e

Please sign in to comment.