fix: rework to use numba typed list #2522
Annotations
4 errors
Test non-kernels (Python):
tests/test_2408_layoutbuilder_in_numba.py#L381
test_BitMasked
AttributeError: 'List' object has no attribute '_panels'
|
Test non-kernels (Python):
tests/test_2408_layoutbuilder_in_numba.py#L601
test_unbox_for_loop
numba.core.errors.NumbaPendingDeprecationWarning: Failed in nopython mode pipeline (step: nopython frontend)
Code using Numba extension API maybe depending on 'old_style' error-capturing, which is deprecated and will be replaced by 'new_style' in a future release. See details at https://numba.readthedocs.io/en/latest/reference/deprecation.html#deprecation-of-old-style-numba-captured-errors
Exception origin:
File "/Users/runner/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/numba/core/ir.py", line 770, in __init__
assert exc_class is None or isinstance(exc_class, type)
|
Test non-kernels (Python):
tests/test_2408_layoutbuilder_in_numba.py#L1213
test_BitMasked_append_extend
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function BitMasked_append_valid at 0x1233ca700>) found for signature:
>>> BitMasked_append_valid(ak.lb.BitMasked(uint8, ak.lb.Numpy(float64, parameters=Literal[NoneType](None)), True, True, parameters=None))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'BitMasked_append_valid': File: awkward/_connect/numba/layoutbuilder.py: Line 1106.
With argument(s): '(ak.lb.BitMasked(uint8, ak.lb.Numpy(float64, parameters=Literal[NoneType](None)), True, True, parameters=None))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function BitMasked_append_end at 0x1233ca5e0>) found for signature:
>>> BitMasked_append_end(ak.lb.BitMasked(uint8, ak.lb.Numpy(float64, parameters=Literal[NoneType](None)), True, True, parameters=None))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'BitMasked_append_end': File: awkward/_connect/numba/layoutbuilder.py: Line 1078.
With argument(s): '(ak.lb.BitMasked(uint8, ak.lb.Numpy(float64, parameters=Literal[NoneType](None)), True, True, parameters=None))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Unknown attribute '_panels' of type ListType[uint8]
File "../../../hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/awkward/_connect/numba/layoutbuilder.py", line 1084:
def append_end(builder):
<source elided>
# 0 indicates null, 1 indicates valid
builder._mask._panels[-1][builder._mask._length_pos[1] - 1] = (
^
During: typing of get attribute at /Users/runner/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/awkward/_connect/numba/layoutbuilder.py (1084)
File "../../../hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/awkward/_connect/numba/layoutbuilder.py", line 1084:
def append_end(builder):
<source elided>
# 0 indicates null, 1 indicates valid
builder._mask._panels[-1][builder._mask._length_pos[1] - 1] = (
^
raised from /Users/runner/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/numba/core/typeinfer.py:1086
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'awkward._connect.numba.layoutbuilder.BitMaskedType'>, '_append_end') for ak.lb.BitMasked(uint8, ak.lb.Numpy(float64, parameters=Literal[NoneType](None)), True, True, parameters=None))
During: typing of call at /Users/runner/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/awkward/_connect/numba/layoutbuilder.py (1116)
File "../../../hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/awkward/_connect/numba/layoutbuilder.py", line 1116:
def append_valid(builder):
<source elided>
]
builder._append_end()
^
raised from /Users/runner/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/numba/core/typeinfer.py:1086
- Resolution failure for non-literal arguments:
None
During: resolving callee type: BoundFunction((<class 'awkward._connect.numba.layoutbuilder.BitMaskedType'>, 'append_valid') for ak.lb.BitMasked(uint8, ak.lb.Numpy(float64, parameters=Literal[NoneType](None)), True, True, parameters=None))
During: typi
|
Test non-kernels (Python)
Process completed with exit code 1.
|
Loading