MCPcopy Create free account
hub / github.com/BeingBeyond/BeTTER / _selected_state_indices

Function _selected_state_indices

tools/render/render_episode.py:1252–1263  ·  view source on GitHub ↗
(
    *,
    state_count: int,
    stride: int,
    max_frames: int,
)

Source from the content-addressed store, hash-verified

1250
1251
1252def _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
1266def _camera_rgb(camera: Any):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected