Skip to content

Commit

Permalink
use uuid property
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ committed Jun 27, 2023
1 parent 347bca2 commit 50a6845
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zntrack/core/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import pathlib
import time
import typing
import uuid

import dvc.api
import dvc.cli
Expand Down Expand Up @@ -172,7 +171,7 @@ def save(
) -> None:
"""Save the node's output to disk."""
if uuid_only:
(self.nwd / "uuid").write_text(str(uuid.uuid4()))
(self.nwd / "uuid").write_text(str(self.uuid))
return

# TODO have an option to save and run dvc commit afterwards.
Expand Down

0 comments on commit 50a6845

Please sign in to comment.