(self, name: str)
| 147 | return [str(it.axis.name) for it in self.layout.shard] |
| 148 | |
| 149 | def axis(self, name: str) -> AxisRange: |
| 150 | for it in self.layout.shard: |
| 151 | if str(it.axis.name) != name: |
| 152 | continue |
| 153 | offset = 0 |
| 154 | for axis, value in self.layout.offset.items(): |
| 155 | if str(axis.name) == name: |
| 156 | offset = int(value) |
| 157 | break |
| 158 | return AxisRange(int(it.extent), offset, int(it.stride)) |
| 159 | raise ValueError(f"unknown active-set axis: {name!r}") |
| 160 | |
| 161 | def replace_axis(self, axis: str, axis_range: AxisRange) -> ActiveSet: |
| 162 | axes: list[tuple[str, AxisRange]] = [] |
no test coverage detected