Skip to content

Commit

Permalink
C++ refactoring: NumPy ufuncs for v2. (#1143)
Browse files Browse the repository at this point in the history
* C++ refactoring: NumPy ufuncs for v2.

* All ufunc-related tests pass (skipping Python 2.7).
  • Loading branch information
jpivarski authored Nov 12, 2021
1 parent c75e1bc commit f795658
Show file tree
Hide file tree
Showing 18 changed files with 999 additions and 432 deletions.
4 changes: 2 additions & 2 deletions src/awkward/_v2/_broadcasting.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ def broadcast_pack(inputs, isscalar):
def broadcast_unpack(x, isscalar):
if all(isscalar):
if len(x) == 0:
return x.getitem_nothing().getitem_nothing()
return x._getitem_nothing()._getitem_nothing()
else:
return x[0][0]
else:
if len(x) == 0:
return x.getitem_nothing()
return x._getitem_nothing()
else:
return x[0]

Expand Down
Loading

0 comments on commit f795658

Please sign in to comment.