Skip to content

Commit

Permalink
change deprecated @numba.jit to @numba.jit(nopython=True)
Browse files Browse the repository at this point in the history
  • Loading branch information
moustakas committed Jan 3, 2024
1 parent 38220d5 commit 4ae323c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/redrock/rebin.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def centers2edges(centers):
# of this code have already been tested and shown to perform no better
# than numba on Intel haswell and KNL architectures.

@numba.jit
@numba.jit(nopython=True)
def _trapz_rebin_1d(x, y, edges, results):
'''
Numba-friendly version of trapezoidal rebinning
Expand Down Expand Up @@ -175,7 +175,7 @@ def _trapz_rebin_1d(x, y, edges, results):

return

@numba.jit
@numba.jit(nopython=True)
def _trapz_rebin_batch(x, y, edges, myz, results, redshifted_x):
'''
Numba-friendly version of trapezoidal rebinning
Expand Down

0 comments on commit 4ae323c

Please sign in to comment.