Skip to content

Commit

Permalink
Merge pull request #76 from kyledmiller/save_fix
Browse files Browse the repository at this point in the history
fixed erroneous indent in save function
  • Loading branch information
sgbaird committed Sep 9, 2024
2 parents b9835dc + bd5c58b commit bd0f7b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crabnet/crabnet_.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,8 +1094,8 @@ def save_network(self, model_name: str = None):
"""
if model_name is None:
model_name = self.model_name
os.makedirs(join("models", "trained_models"), exist_ok=True)
path = join("models", "trained_models", f"{model_name}.pth")
os.makedirs(join("models", "trained_models"), exist_ok=True)
path = join("models", "trained_models", f"{model_name}.pth")
if self.verbose:
print(f"Saving network ({model_name}) to {path}")

Expand Down

0 comments on commit bd0f7b6

Please sign in to comment.