MCPcopy
hub / github.com/pydata/xarray / check_orthogonal_indexing

Method check_orthogonal_indexing

xarray/tests/test_variable.py:2959–2967  ·  view source on GitHub ↗
(self, v, load_async)

Source from the content-addressed store, hash-verified

2957 self.cat = PandasExtensionArray(pd.Categorical(["a", "b"] * 5))
2958
2959 async def check_orthogonal_indexing(self, v, load_async):
2960 expected = self.d[[8, 3]][:, [2, 1]]
2961
2962 if load_async:
2963 result = await v.isel(x=[8, 3], y=[2, 1]).load_async()
2964 else:
2965 result = v.isel(x=[8, 3], y=[2, 1])
2966
2967 assert np.allclose(result, expected)
2968
2969 async def check_vectorized_indexing(self, v, load_async):
2970 ind_x = Variable("z", [0, 2])

Callers 5

test_CopyOnWriteArrayMethod · 0.95

Calls 2

load_asyncMethod · 0.45
iselMethod · 0.45

Tested by

no test coverage detected