Skip to content

NumbaPendingDeprecationWarning #146

Closed

Description

@rajeeja

Describe the warning
When running tests these warnings appear:

see link

../opt/homebrew/anaconda3/envs/Benchmarks/lib/python3.10/site-packages/numba/core/ir_utils.py:2147: NumbaPendingDeprecationWarning: 
Encountered the use of a type that is scheduled for deprecation: type 'reflected list' found for argument 'node_coord' of function '_convert_node_lonlat_rad_to_xyz'.

For more information visit https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-reflection-for-list-and-set-types

File "uxarray/helpers.py", line 487:
@njit
def _convert_node_lonlat_rad_to_xyz(node_coord):
^

  warnings.warn(NumbaPendingDeprecationWarning(msg, loc=loc))
/Users/mbook/uxarray/uxarray/helpers.py:537: NumbaPendingDeprecationWarning: 
Encountered the use of a type that is scheduled for deprecation: type 'reflected list' found for argument 'node' of function '_normalize_in_place'.

For more information visit https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-reflection-for-list-and-set-types

File "uxarray/helpers.py", line 559:
@njit
def _normalize_in_place(node):
^

  [dx, dy, dz] = _normalize_in_place(node_coord)
/Users/mbook/uxarray/uxarray/helpers.py:537: NumbaPendingDeprecationWarning: 
Encountered the use of a type that is scheduled for deprecation: type 'reflected list' found for argument 'object' of function 'jit_wrapper__built_in_function_array_'.

For more information visit https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-reflection-for-list-and-set-types

File "<string>", line 2:
<source missing, REPL/exec in use?>

  [dx, dy, dz] = _normalize_in_place(node_coord)
/opt/homebrew/anaconda3/envs/Benchmarks/lib/python3.10/site-packages/numba/core/ir_utils.py:2147: NumbaPendingDeprecationWarning: 
Encountered the use of a type that is scheduled for deprecation: type 'reflected list' found for argument 'node_coord' of function '_convert_node_xyz_to_lonlat_rad'.

For more information visit https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-reflection-for-list-and-set-types

File "uxarray/helpers.py", line 515:
@njit
def _convert_node_xyz_to_lonlat_rad(node_coord):
^

  warnings.warn(NumbaPendingDeprecationWarning(msg, loc=loc))
...........Variables not in recognized SCRIP form. Please refer to https://earthsystemmodeling.org/docs/release/ESMF_6_2_0/ESMF_refdoc/node3.html#SECTION03024000000000000000 for more information on SCRIP Grid file formatting

The change would make the code a little less pythonic.

OS:
iOS

Activity

  1. added
    new feature
    on Sep 28, 2022
  2. added a commit that references this issue on Oct 25, 2023
  3. added this to the CI / CD milestone on Mar 19, 2024
  4. moved this from 📚 Backlog to 📝 To-Do in UXarray Developmenton Mar 19, 2024
  5. linked a pull request that will close this issueVectorize Coordinate Conversion Functions #748on Apr 23, 2024
  6. moved this from 📝 To-Do to 👀 In review in UXarray Developmenton May 14, 2024
  7. moved this from 👀 In review to ✅ Done in UXarray Developmenton May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    new feature

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions