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

Class MyArray

dask/array/tests/test_array_core.py:2868–2876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2866
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]
2877
2878
2879@pytest.mark.parametrize(

Calls

no outgoing calls

Tested by 2

test_from_array_getitemFunction · 0.68