MCPcopy Create free account
hub / github.com/dask/dask / ARangeSlice

Class ARangeSlice

dask/array/tests/test_array_core.py:2776–2785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2774
2775def test_slicing_with_non_ndarrays():
2776 class ARangeSlice:
2777 dtype = np.dtype("i8")
2778 ndim = 1
2779
2780 def __init__(self, start, stop):
2781 self.start = start
2782 self.stop = stop
2783
2784 def __array__(self):
2785 return np.arange(self.start, self.stop)
2786
2787 class ARangeSliceable:
2788 dtype = np.dtype("i8")

Callers 1

__getitem__Method · 0.85

Calls 1

dtypeMethod · 0.45

Tested by 1

__getitem__Method · 0.68