Skip to content

get_trajectory_file ​

python
get_trajectory_file(result_or_data: Any) -> EpisodeTrajectoryDataSource | None

Extract a trajectory wrapper from a multi-env result or step-result data.

Parameters:

  • result_or_data (Any) – The wrapped result object or step-result data dictionary.

Returns:

  • EpisodeTrajectoryDataSource | None – The trajectory, or None.

Source