Skip to content

Commit

Permalink
Merge pull request #382 from monarch-initiative/381-prepare-corpus-co…
Browse files Browse the repository at this point in the history
…py-error

381 prepare corpus copy error
  • Loading branch information
yaseminbridges authored Jan 16, 2025
2 parents d28e702 + 7c40194 commit e783ceb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pheval"
version = "0.4.3"
version = "0.4.4"
description = ""
authors = ["Yasemin Bridges <y.bridges@qmul.ac.uk>",
"Julius Jacobsen <j.jacobsen@qmul.ac.uk>",
Expand Down
8 changes: 6 additions & 2 deletions src/pheval/prepare/prepare_corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ def prepare_corpus(
)
else:
# if not updating phenopacket gene identifiers then copy phenopacket as is to output directory
shutil.copy(
phenopacket_path, output_dir.joinpath(f"phenopackets/{phenopacket_path.name}")
(
shutil.copy(
phenopacket_path, output_dir.joinpath(f"phenopackets/{phenopacket_path.name}")
)
if phenopacket_path != output_dir.joinpath(f"phenopackets/{phenopacket_path.name}")
else None
)

0 comments on commit e783ceb

Please sign in to comment.