MCPcopy Create free account
hub / github.com/InternLM/InternBootcamp / action_next_sample

Method action_next_sample

verl/scripts/rollout_viewer.py:438–444  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

436 await self.update_content()
437
438 async def action_next_sample(self) -> None:
439 self.selected_sample_index += 1
440 if not self.sample_num or self.selected_sample_index >= self.sample_num:
441 self.selected_sample_index = 0
442 self.sample_select.value = self.selected_sample_index
443 await self._clear_search()
444 await self.update_content()
445
446 async def action_previous_step(self) -> None:
447 self.selected_step_index -= 1

Callers

nothing calls this directly

Calls 2

_clear_searchMethod · 0.95
update_contentMethod · 0.95

Tested by

no test coverage detected