aegis_sim.recording.configrecorder
1import pathlib 2import yaml 3from .recorder import Recorder 4 5 6class ConfigRecorder(Recorder): 7 """ 8 9 Records once. 10 """ 11 12 def __init__(self, odir: pathlib.Path): 13 self.odir = odir 14 self.path = self.odir / "final_config.yml" 15 16 def write_final_config_file(self, final_config): 17 with open(self.path, "w") as file_: 18 yaml.dump(final_config, file_)
7class ConfigRecorder(Recorder): 8 """ 9 10 Records once. 11 """ 12 13 def __init__(self, odir: pathlib.Path): 14 self.odir = odir 15 self.path = self.odir / "final_config.yml" 16 17 def write_final_config_file(self, final_config): 18 with open(self.path, "w") as file_: 19 yaml.dump(final_config, file_)
Records once.