(self)
| 769 | return _wrap_numpy_scalars(array) |
| 770 | |
| 771 | async def async_get_duck_array(self): |
| 772 | from xarray.backends.common import BackendArray |
| 773 | |
| 774 | if isinstance(self.array, BackendArray): |
| 775 | array = await self.array.async_getitem(self.key) |
| 776 | else: |
| 777 | array = apply_indexer(self.array, self.key) |
| 778 | if isinstance(array, ExplicitlyIndexed): |
| 779 | array = await array.async_get_duck_array() |
| 780 | return _wrap_numpy_scalars(array) |
| 781 | |
| 782 | def transpose(self, order): |
| 783 | return LazilyVectorizedIndexedArray(self.array, self.key).transpose(order) |
nothing calls this directly
no test coverage detected