From 564cbc45c2b12899a8c4b01ef670c13a7494e45b Mon Sep 17 00:00:00 2001 From: efriman Date: Fri, 30 Jun 2023 13:12:54 +0100 Subject: [PATCH] nopython=True due to https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit --- cooltools/lib/numutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cooltools/lib/numutils.py b/cooltools/lib/numutils.py index 6d35a797..2f9ece76 100644 --- a/cooltools/lib/numutils.py +++ b/cooltools/lib/numutils.py @@ -648,7 +648,7 @@ def observed_over_expected( return data, dist_bins, sum_pixels_arr, n_pixels_arr -@numba.jit # (nopython=True) +@numba.jit(nopython=True) def iterative_correction_symmetric( x, max_iter=1000, ignore_diags=0, tol=1e-5, verbose=False ): @@ -723,7 +723,7 @@ def iterative_correction_symmetric( return _x, totalBias, report -@numba.jit # (nopython=True) +@numba.jit(nopython=True) def iterative_correction_asymmetric(x, max_iter=1000, tol=1e-5, verbose=False): """Adapted from iterative_correction_symmetric