Functions
replay
6
Any
▼
Replay a recorded session through a reducer.
Returns final state. Optionally a…
replay
6
Any
▼
def replay(recording: SessionRecording | str | Path, reducer: Callable, *, speed: float = 1.0, step: bool = False, on_state: Callable | None = None, assert_hashes: bool = False) -> Any
Replay a recorded session through a reducer.
Returns final state. Optionally asserts state_hash matches at each step to detect reducer regressions.
Parameters
| Name | Type | Description |
|---|---|---|
recording |
SessionRecording | str | Path |
|
reducer |
Callable |
|
speed |
float |
Default:1.0
|
step |
bool |
Default:False
|
on_state |
Callable | None |
Default:None
|
assert_hashes |
bool |
Default:False
|
Returns
Any