Skip to content

Commit

Permalink
only copy phenopacket if it doesn't already exist at output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
yaseminbridges committed Jan 16, 2025
1 parent d28e702 commit e0bb68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pheval/prepare/prepare_corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ def prepare_corpus(
# 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}")
)
) if phenopacket_path != output_dir.joinpath(f"phenopackets/{phenopacket_path.name}") else None

0 comments on commit e0bb68d

Please sign in to comment.