From e0bb68d7dcc0d48c4e25ca9f6bcc242e55961fc7 Mon Sep 17 00:00:00 2001 From: Yasemin Bridges Date: Thu, 16 Jan 2025 14:57:25 +0000 Subject: [PATCH] only copy phenopacket if it doesn't already exist at output directory --- src/pheval/prepare/prepare_corpus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pheval/prepare/prepare_corpus.py b/src/pheval/prepare/prepare_corpus.py index df0beda2..15cd1810 100644 --- a/src/pheval/prepare/prepare_corpus.py +++ b/src/pheval/prepare/prepare_corpus.py @@ -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