Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
twallema committed Aug 30, 2024
1 parent b3b64e5 commit f9a50fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pySODM/optimization/objective_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def log_prior_uniform(x, bounds):
prob = 1/(bounds[1]-bounds[0])
condition = bounds[0] <= x <= bounds[1]
if condition == True:
# Can also be set to zero: value doesn't matter much because its constant --> should be set to zero, bounds = np.inf --> prob is inf!!!
# should be set to zero to accomodate bounds = np.inf --> prob is inf!!!
return 0
else:
return -np.inf
Expand Down

0 comments on commit f9a50fc

Please sign in to comment.