Skip to content

Commit

Permalink
fix folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
lruizcalico committed Jun 20, 2024
1 parent a4ce96c commit 7116151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/baskerville/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def __init__(

# if log_dir is in gcs then create a local temp dir
if is_gcs_path(self.log_dir):
folder_name = self.log_dir.split("/")[-1]
self.log_dir = tempfile.mkdtemp() + folder_name
folder_name = "/".join(self.log_dir.split("/")[3:])
self.log_dir = tempfile.mkdtemp() + "/" + folder_name
self.gcs_log_dir = log_dir
self.gcs = True
else:
Expand Down

0 comments on commit 7116151

Please sign in to comment.