Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numba warnings #120

Closed
IamShubhamGupto opened this issue Jun 10, 2023 · 2 comments
Closed

Numba warnings #120

IamShubhamGupto opened this issue Jun 10, 2023 · 2 comments

Comments

@IamShubhamGupto
Copy link
Member

Problem

with the latest commit, there seems to be a new numba deprecation warning generated from methods in'L96_model and DA_methods file.

Logs

source: Learning Data Assimilation Increments notebook

/home/runner/work/L96_demo/L96_demo/notebooks/DA_methods.py:10: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.
  def Lin3dvar(ub, w, H, R, B, opt):
/home/runner/work/L96_demo/L96_demo/notebooks/DA_methods.py:39: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.
  def ens_inflate(posterior, prior, opt, factor):
/home/runner/work/L96_demo/L96_demo/notebooks/DA_methods.py:59: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.
  def EnKF(prior, obs, H, R, B):
/home/runner/work/L96_demo/L96_demo/notebooks/L96_model.py:12: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.
  def L96_eq1_xdot(X, F, advect=True):
/home/runner/work/L96_demo/L96_demo/notebooks/L96_model.py:37: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.
  def L96_2t_xdot_ydot(X, Y, F, h, b, c):

Possible fix

Add parameter nopython=False in jit decorator

Will be addressed in the next 7 days

@IamShubhamGupto
Copy link
Member Author

Adding (nopython=False) raised a new warning. Should shift to njit for a fix

reference - dsgibbons/shap#68

@IamShubhamGupto
Copy link
Member Author

Issue resolved and verified after #124 was merged

Screenshot 2023-06-20 at 11 36 52 AM

closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant