Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelosthege authored Oct 10, 2024
1 parent ee02960 commit fbe62a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calibr8/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ def _warn_hit_bounds(theta, bounds, theta_names) -> bool:
for (ip, p), (lb, ub) in zip(enumerate(theta), bounds):
pname = f"{ip+1}" if not theta_names else theta_names[ip]
if numpy.isclose(p, lb):
_log.warn(f"Parameter {pname} ({p}) is close to its lower bound ({lb}).")
_log.warning("Parameter %s (%f) is close to its lower bound (%f).", pname, p, lb)
bound_hit = True
if numpy.isclose(p, ub):
_log.warn(f"Parameter {pname} ({p}) is close to its upper bound ({ub}).")
_log.warning("Parameter %s (%f) is close to its upper bound (%f).", pname, p, ub)
bound_hit = True
return bound_hit

Expand Down

0 comments on commit fbe62a6

Please sign in to comment.