TrajectoryWriterRegistry

class maze.core.trajectory_recording.writers.trajectory_writer_registry.TrajectoryWriterRegistry

Handles registration of trajectory data writers. Registered writers will be forwarded episode trajectory data at the end of each episode.

classmethod record_trajectory_data(episode_record: maze.core.trajectory_recording.records.trajectory_record.StateTrajectoryRecord)None

Record trajectory data through all registered trajectory data writers.

Parameters

episode_record – Record of episode trajectory data to log.

classmethod register_writer(writer: maze.core.trajectory_recording.writers.trajectory_writer.TrajectoryWriter)None

Register a writer. Each writer will receive all globally recorded trajectory data.

Parameters

writer – Trajectory writer to register.