Skip to content

Commit

Permalink
remove print and added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
scap3yvt committed Nov 3, 2023
1 parent 39b2428 commit b97fb05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GANDLF/utils/modelio.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ def save_model(
model_dict["parameters"] = params

try:
print("DEBUG os.getcwd():", os.getcwd())
# this will try to encode the git hash of the current GaNDLF codebase, and reverts to "None" if not found
model_dict["git_hash"] = (
subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=os.getcwd())
.decode("ascii")
.strip()
)
except (subprocess.CalledProcessError, FileNotFoundError):
model_dict["git_hash"] = None
model_dict["git_hash"] = "None"

Check warning on line 165 in GANDLF/utils/modelio.py

View check run for this annotation

Codecov / codecov/patch

GANDLF/utils/modelio.py#L164-L165

Added lines #L164 - L165 were not covered by tests

torch.save(model_dict, path)

Expand Down

0 comments on commit b97fb05

Please sign in to comment.