uxarray
uxarray copied to clipboard
NumbaPendingDeprecationWarning
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