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 4a25c52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "maxgcp"
version = "0.1.2"
version = "0.1.3"
description = "Optimized phenotype definitions boost GWAS power"
authors = [
{name = "zietzm", email = "[email protected]"}
Expand Down
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 4a25c52

Please sign in to comment.