Skip to content

Commit

Permalink
add comment to not forget
Browse files Browse the repository at this point in the history
  • Loading branch information
ikrommyd committed Feb 13, 2025
1 parent fed02cb commit ba4c666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/awkward/_nplikes/cupy.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def is_own_array_type(cls, type_: type) -> bool:
Return `True` if the given object is a cupy buffer, otherwise `False`.
"""
# TODO: Implement this fore virtual arrays
module, _, suffix = type_.__module__.partition(".")
return module == "cupy"

Expand Down
1 change: 1 addition & 0 deletions src/awkward/_nplikes/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def is_own_array_type(cls, type_: type) -> bool:
Return `True` if the given object is a numpy buffer, otherwise `False`.
"""
# TODO: Implement this for virtual arrays
return issubclass(type_, numpy.ndarray)

def is_c_contiguous(self, x: NDArray | PlaceholderArray) -> bool:
Expand Down

0 comments on commit ba4c666

Please sign in to comment.