Function
_selected_state_indices
(
*,
state_count: int,
stride: int,
max_frames: int,
)
Source from the content-addressed store, hash-verified
| 1250 | |
| 1251 | |
| 1252 | def _selected_state_indices( |
| 1253 | *, |
| 1254 | state_count: int, |
| 1255 | stride: int, |
| 1256 | max_frames: int, |
| 1257 | ) -> list[int]: |
| 1258 | if state_count <= 0: |
| 1259 | return [] |
| 1260 | indices = list(range(0, state_count, max(1, int(stride)))) |
| 1261 | if int(max_frames) > 0: |
| 1262 | indices = indices[: int(max_frames)] |
| 1263 | return indices |
| 1264 | |
| 1265 | |
| 1266 | def _camera_rgb(camera: Any): |
Tested by
no test coverage detected