Skip to content

Commit

Permalink
Turned on caching for regridding.find_indices().
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Dec 4, 2023
1 parent 78d1c30 commit 0181a41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion regridding/_find_indices/_find_indices_brute.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _find_indices_brute(
return result


@numba.njit(parallel=True)
@numba.njit(parallel=True, cache=True)
def _find_indices_brute_1d(
coordinates_input: tuple[np.ndarray],
coordinates_output: tuple[np.ndarray],
Expand Down
2 changes: 1 addition & 1 deletion regridding/_find_indices/_find_indices_searchsorted.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _find_indices_searchsorted(
return result


@numba.njit(parallel=True)
@numba.njit(parallel=True, cache=True)
def _find_indices_searchsorted_1d(
coordinates_input: tuple[np.ndarray],
coordinates_output: tuple[np.ndarray],
Expand Down

0 comments on commit 0181a41

Please sign in to comment.