Skip to content

Commit

Permalink
fix: EmptyArray.is_numpy should be False. (#1971)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski authored Dec 7, 2022
1 parent e5836e9 commit f85bfdf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/awkward/contents/emptyarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


class EmptyArray(Content):
is_numpy = True
is_unknown = True

def __init__(self, *, parameters=None, backend=None):
Expand Down
2 changes: 1 addition & 1 deletion src/awkward/operations/ak_is_none.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def getfunction_inner(layout, depth, **kwargs):
],
)

elif layout.is_unknown or layout.is_list or layout.is_record or layout.is_numpy:
elif layout.is_numpy or layout.is_unknown or layout.is_list or layout.is_record:
return ak.contents.NumpyArray(
backend.nplike.zeros(len(layout), dtype=np.bool_)
)
Expand Down

0 comments on commit f85bfdf

Please sign in to comment.