(self, axis: str, axis_range: AxisRange)
| 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]] = [] |
| 163 | found = False |
| 164 | for name in self.axis_names: |
| 165 | if name == axis: |
| 166 | axes.append((name, axis_range)) |
| 167 | found = True |
| 168 | else: |
| 169 | axes.append((name, self.axis(name))) |
| 170 | if not found: |
| 171 | raise ValueError(f"unknown active-set axis: {axis!r}") |
| 172 | return ActiveSet.from_axes(axes) |
| 173 | |
| 174 | @property |
| 175 | def laneid(self) -> AxisRange: |
no test coverage detected