Skip to content

Commit

Permalink
next try for jit option with nopython
Browse files Browse the repository at this point in the history
  • Loading branch information
sibirrer committed Jul 11, 2023
1 parent 04eb495 commit e7c12c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lenstronomy/Util/image_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ def re_size_array(x_in, y_in, input_values, x_out, y_out):
:param y_out:
:return:
"""
# from skimage.transform import resize
# resize(input_values)
interp_2d = interpolate.interp2d(x_in, y_in, input_values, kind='linear')
# interp_2d = scipy.interpolate.RectBivariateSpline(x_in, y_in, input_values, kx=1, ky=1)
out_values = interp_2d.__call__(x_out, y_out)
Expand Down
4 changes: 2 additions & 2 deletions lenstronomy/Util/numba_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def overload(nopython=nopython, cache=cache, parallel=parallel, fastmath=fastmat
def wrapper(func):
return func

@numba.extending.overload(wrapper, nopython=nopython, cache=cache, parallel=parallel, fastmath=fastmath,
error_model=error_model)
@numba.extending.overload(wrapper, jit_options={'nopython': nopython, 'cache': cache, 'parallel': parallel,
'fastmath': fastmath, 'error_model': error_model})
def ol_wrapper(func):
return func
else:
Expand Down

0 comments on commit e7c12c9

Please sign in to comment.