From 20f6dbd1e02a5b823f0849e851d16c4904699f2a Mon Sep 17 00:00:00 2001 From: kedhammar Date: Tue, 27 Aug 2024 13:53:33 +0200 Subject: [PATCH] add warning --- scripts/generate_aviti_run_manifest.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/generate_aviti_run_manifest.py b/scripts/generate_aviti_run_manifest.py index eee58152..2cae17f3 100644 --- a/scripts/generate_aviti_run_manifest.py +++ b/scripts/generate_aviti_run_manifest.py @@ -27,8 +27,14 @@ def get_flowcell_id(process: Process) -> str: ] assert len(set(flowcell_ids)) == 1, "Expected one flowcell ID." + flowcell_id = flowcell_ids[0] - return flowcell_ids[0] + if "-" in flowcell_id: + logging.warning( + f"Container name {flowcell_id} contains a dash, did you forget to set the name of the LIMS container to the flowcell ID?" + ) + + return flowcell_id def get_runValues_section(process: Process, file_name: str) -> str: