(self, v, load_async)
| 2967 | assert np.allclose(result, expected) |
| 2968 | |
| 2969 | async def check_vectorized_indexing(self, v, load_async): |
| 2970 | ind_x = Variable("z", [0, 2]) |
| 2971 | ind_y = Variable("z", [2, 1]) |
| 2972 | expected = self.d[ind_x, ind_y] |
| 2973 | |
| 2974 | if load_async: |
| 2975 | result = await v.isel(x=ind_x, y=ind_y).load_async() |
| 2976 | else: |
| 2977 | result = v.isel(x=ind_x, y=ind_y).load() |
| 2978 | |
| 2979 | assert np.allclose(result, expected) |
| 2980 | |
| 2981 | @pytest.mark.asyncio |
| 2982 | @pytest.mark.parametrize("load_async", [True, False]) |
no test coverage detected