Skip to content

Commit

Permalink
correct
Browse files Browse the repository at this point in the history
  • Loading branch information
twallema committed Aug 30, 2024
1 parent d92620e commit b3b64e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pySODM/optimization/objective_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ 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
return np.log(prob)
# 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!!!
return 0
else:
return -np.inf

Expand Down

0 comments on commit b3b64e5

Please sign in to comment.