From dee2b23606264e06a8130b4f3c622f77590b234e Mon Sep 17 00:00:00 2001 From: Theo Guyard Date: Wed, 30 Apr 2025 14:44:45 -0400 Subject: [PATCH] Update _utils.py Fix np.inf old formalism not compatible with new versions of numba --- l0bnb/relaxation/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l0bnb/relaxation/_utils.py b/l0bnb/relaxation/_utils.py index c64c85d..9ae2cf0 100644 --- a/l0bnb/relaxation/_utils.py +++ b/l0bnb/relaxation/_utils.py @@ -4,7 +4,7 @@ @njit(cache=True) def get_ratio_threshold(l0, l2, m): - ratio = np.sqrt(l0 / l2) if l2 != 0 else np.Inf + ratio = np.sqrt(l0 / l2) if l2 != 0 else np.inf threshold = 2 * np.sqrt(l0 * l2) if ratio <= m else l0 / m + l2 * m return ratio, threshold