ray.rllib.env.multi_agent_episode.MultiAgentEpisode.concat_episode#
- MultiAgentEpisode.concat_episode(other: MultiAgentEpisode) None[source]#
Adds the given
otherMultiAgentEpisode 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 of the individual agents at the concatenation boundaries. Also,self.is_donemust not be True, meaningself.is_terminatedandself.is_truncatedare both False.- Parameters:
other – The other
MultiAgentEpisodeto be concatenated to this one.- Returns:
A
MultiAgentEpisodeinstance containing the concatenated data from both episodes (selfandother).