Visitar URL original
Reverting PR #3179 which breaks csv logging. (#3183) · DeepLabCut/DeepLabCut@f729f62 · GitHub
Skip to content

Commit f729f62

Browse files
authored
Reverting PR #3179 which breaks csv logging. (#3183)
1 parent 99b45d9 commit f729f62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • deeplabcut/pose_estimation_pytorch/runners

‎deeplabcut/pose_estimation_pytorch/runners/logger.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def log(self, metrics: dict[str, Any], step: Optional[int] = None) -> None:
438438
def save(self):
439439
"""Saves the metrics to the file system"""
440440
logs = self._prepare_logs()
441-
with open(self.log_file, "a", newline="") as f:
441+
with open(self.log_file, "w", newline="") as f:
442442
writer = csv.writer(f)
443443
writer.writerows(logs)
444444

0 commit comments

Comments
 (0)