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

Method __init__

dask/array/tests/test_array_core.py:2869–2873  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

2867
2868class MyArray:
2869 def __init__(self, x):
2870 self.x = x
2871 self.dtype = x.dtype
2872 self.shape = x.shape
2873 self.ndim = len(x.shape)
2874
2875 def __getitem__(self, i):
2876 return self.x[i]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected