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

Method __getitem__

dask/array/tests/test_array_core.py:2798–2799  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

2796 return (self.n,)
2797
2798 def __getitem__(self, key):
2799 return ARangeSlice(key[0].start, key[0].stop)
2800
2801 x = da.from_array(ARangeSliceable(10), chunks=(4,))
2802

Callers

nothing calls this directly

Calls 1

ARangeSliceClass · 0.85

Tested by

no test coverage detected