Skip to content

Commit

Permalink
fix: avoid errors when cleaning up from moved temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
zietzm committed Aug 27, 2024
1 parent 94855ac commit 7d20fb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/maxgcp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,9 @@ def run_command(
maxgcp_weights_path.rename(
output_file.parent.joinpath("maxgcp_weights.tsv")
)
# Create empty files to avoid errors when cleaning up
covariance_path.touch()
maxgcp_weights_path.touch()
else:
logger.info("Cleaning up intermediate files")
logger.info("Done")

0 comments on commit 7d20fb8

Please sign in to comment.