ray.rllib.env.single_agent_episode.SingleAgentEpisode.concat_episode#
- SingleAgentEpisode.concat_episode(other: SingleAgentEpisode) None[source]#
Adds the given
otherSingleAgentEpisode to the right side ofself.In order for this to work, both chunks (
selfandother) must fit together. This is checked by the IDs (must be identical), the time step counters (self.env_tmust be the same asepisode_chunk.env_t_started), as well as the observations/infos at the concatenation boundaries. Also,self.is_donemust not be True, meaningself.is_terminatedandself.is_truncatedare both False.- Parameters:
other – The other
SingleAgentEpisodeto be concatenated to this one.- Returns:
A
SingleAgentEpisodeinstance containing the concatenated data from both episodes (selfandother).