(self)
| 238 | self.traj = {"observations": [], "actions": []} |
| 239 | |
| 240 | def write(self): |
| 241 | self.update_record() |
| 242 | with open(self.file_path, "w") as f: |
| 243 | json.dump(self.trajs, f) |
| 244 | print(f"Saved trajs to trajs/{self.file_id}.json") |
| 245 | |
| 246 | def close(self): |
| 247 | self.write() |
no test coverage detected