From b3b64e506ccc09b97702354fd4bafb9ce7154bad Mon Sep 17 00:00:00 2001 From: Tijs Alleman Date: Fri, 30 Aug 2024 13:25:53 -0400 Subject: [PATCH] correct --- src/pySODM/optimization/objective_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pySODM/optimization/objective_functions.py b/src/pySODM/optimization/objective_functions.py index f18e4296..34873e50 100644 --- a/src/pySODM/optimization/objective_functions.py +++ b/src/pySODM/optimization/objective_functions.py @@ -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