(text: str, save_path: str)
| 88 | writer.append_data(frame) |
| 89 | |
| 90 | def save_text(text: str, save_path: str): |
| 91 | txt_save_path = os.path.join(save_path, "text.txt") |
| 92 | with open(txt_save_path, "w") as fout: |
| 93 | fout.write(text) |
| 94 | |
| 95 | def save_traj(traj: torch.tensor, save_path: str): |
| 96 | # Write the traj in the end of the txt file |