Skip to content

Commit

Permalink
make sure we copy files before deleting the temporary dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ehneilsen committed Jan 19, 2024
1 parent 664cf66 commit 3772945
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rubin_scheduler/sim_archive/sim_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,10 @@ def drive_sim(
capture_env=True,
)

if archive_uri is not None:
resource_path = transfer_archive_dir(data_dir.name, archive_uri)
else:
resource_path = ResourcePath(data_dir.name, forceDirctory=True)
if archive_uri is not None:
resource_path = transfer_archive_dir(data_dir.name, archive_uri)

Check warning on line 568 in rubin_scheduler/sim_archive/sim_archive.py

View check run for this annotation

Codecov / codecov/patch

rubin_scheduler/sim_archive/sim_archive.py#L567-L568

Added lines #L567 - L568 were not covered by tests
else:
resource_path = ResourcePath(data_dir.name, forceDirctory=True)

Check warning on line 570 in rubin_scheduler/sim_archive/sim_archive.py

View check run for this annotation

Codecov / codecov/patch

rubin_scheduler/sim_archive/sim_archive.py#L570

Added line #L570 was not covered by tests

results = sim_results + (resource_path,)
return results

0 comments on commit 3772945

Please sign in to comment.