Skip to content

Commit

Permalink
Merge pull request #5 from L-in-da/file-exists-error
Browse files Browse the repository at this point in the history
fix file exists error
  • Loading branch information
lappalainenj authored Nov 22, 2024
2 parents e6441f1 + a1caead commit 7abd8f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flyvis/utils/compute_cloud_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ def launch_range(
ensemble_and_network_id = f"{ensemble_id:04}/{i:03}"
assert "_" not in ensemble_and_network_id
network_dir = results_dir / task_name / ensemble_and_network_id
if not network_dir.exists():
network_dir.mkdir(parents=True)
if not network_dir.parent.exists():
network_dir.parent.mkdir(parents=True)
log_file = (
network_dir.parent / f"{i:04}_{script.split('/')[-1].split('.')[0]}.log"
)
Expand Down

0 comments on commit 7abd8f4

Please sign in to comment.