Skip to content

Commit

Permalink
fix: some left-over broken features
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 31, 2023
1 parent 78231ff commit b10205a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/awkward/highlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2643,7 +2643,7 @@ def numba_type(self):
"""
ak.numba.register_and_check()

return ak._connect.numba.builder.ArrayBuilderType(self._behavior, self._attrs)
return ak._connect.numba.builder.ArrayBuilderType(self._behavior)

def __bool__(self):
if len(self) == 1:
Expand Down
5 changes: 4 additions & 1 deletion src/awkward/operations/ak_full_like.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ def _impl(array, fill_value, highlevel, behavior, dtype, including_unknown, attr
layout, _ = ctx.finalize(
ctx.unwrap_layout(array, primitive_policy="error"),
ctx.unwrap_layout(
fill_value, primitive_policy="pass-through", string_policy="pass-through"
fill_value,
primitive_policy="pass-through",
string_policy="pass-through",
allow_unknown=True,
),
)

Expand Down
2 changes: 1 addition & 1 deletion src/awkward/operations/str/akstr_join_element_wise.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _impl(arrays, highlevel, behavior, attrs):
if len(arrays) < 1:
raise TypeError("at least one array is required")

layouts = ctx.finalize(ctx.unwrap_layout(x) for x in arrays)
layouts = ctx.finalize(*(ctx.unwrap_layout(x) for x in arrays))

def action(layouts, **kwargs):
if all(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_1504_typetracer_like.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_zeros_like(dtype, like_dtype):

@pytest.mark.parametrize("dtype", [np.float64, np.int64, np.uint8, None])
@pytest.mark.parametrize("like_dtype", [np.float64, np.int64, np.uint8, None])
@pytest.mark.parametrize("value", [1.0, -20, np.iinfo(np.uint64).max])
@pytest.mark.parametrize("value", [1.0, -20, np.iinfo(np.int64).max])
def test_full_like(dtype, like_dtype, value):
array = ak.contents.numpyarray.NumpyArray(
np.array([99, 88, 77, 66, 66], dtype=dtype)
Expand Down

0 comments on commit b10205a

Please sign in to comment.