Fast version of `_iter_grouped` that yields Variables without metadata
(self)
| 1574 | return self._dims |
| 1575 | |
| 1576 | def _iter_grouped_shortcut(self): |
| 1577 | """Fast version of `_iter_grouped` that yields Variables without |
| 1578 | metadata |
| 1579 | """ |
| 1580 | self._raise_if_by_is_chunked() |
| 1581 | var = self._obj.variable |
| 1582 | for _idx, indices in enumerate(self.encoded.group_indices): |
| 1583 | if indices: |
| 1584 | yield var[{self._group_dim: indices}] |
| 1585 | |
| 1586 | def _concat_shortcut(self, applied, dim, positions=None): |
| 1587 | # nb. don't worry too much about maintaining this method -- it does |
no test coverage detected