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

Method __getitem__

dask/array/tests/test_dispatch.py:140–141  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

138 dtype = dispatch_property("dtype")
139
140 def __getitem__(self, key):
141 return type(self)(self.arr[key], **self.attrs)
142
143 def __setitem__(self, key, value):
144 self.arr[key] = value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected