Skip to content

Commit

Permalink
_nplikes is now a private interface, need to move to backend instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Mar 15, 2023
1 parent 8ca4afe commit c322a3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions coffea/lookup_tools/lookup_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ def __call__(self, *args, **kwargs):
)

def getfunction(args, **kwargs):
if type(args) is not list:
args = [args]
if not isinstance(args, (list, tuple)):
args = (args,)
if all(
isinstance(
x, (awkward.contents.NumpyArray, awkward.contents.EmptyArray)
)
or not isinstance(x, (awkward.contents.Content))
for x in args
):
nplike = awkward.nplikes.nplike_of(*args)
if not isinstance(nplike, awkward.nplikes.Numpy):
nplike = awkward._nplikes.nplike_of(*args)
if not isinstance(nplike, awkward._nplikes.Numpy):
raise NotImplementedError(
"support for cupy/jax/etc. numpy extensions"
)
Expand Down
1 change: 0 additions & 1 deletion coffea/nanoevents/mapping/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def __getitem__(self, key):
handle = self.get_column_handle(
self._column_source(uuid, treepath), handle_name
)
print(handle_name, handle)
stack.append(self.extract_column(handle, start, stop))
elif node.startswith("!"):
tname = node[1:]
Expand Down

0 comments on commit c322a3f

Please sign in to comment.