From 70a3871f13c48f3b013e88256f765432afe8b73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Sv=C3=A4rd?= Date: Mon, 11 Dec 2023 14:12:17 +0100 Subject: [PATCH] patch possible output paths --- cg_lims/EPPs/udf/set/replace_flow_cell_output_path.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cg_lims/EPPs/udf/set/replace_flow_cell_output_path.py b/cg_lims/EPPs/udf/set/replace_flow_cell_output_path.py index 1bf83d24..2955a402 100644 --- a/cg_lims/EPPs/udf/set/replace_flow_cell_output_path.py +++ b/cg_lims/EPPs/udf/set/replace_flow_cell_output_path.py @@ -20,13 +20,13 @@ def get_output_path(process: Process) -> str: def convert_output_path(path: str) -> str: """Return a corrected output path if needed. Can currently convert paths of the types: - \\\clinicaldata\Runs\ - - X:\\ + - :\\ - //cg-nas.scilifelab.se/cg_data/seqdata/20230824_LH00217_0004_A225CW7LT3 They are replaced with: \\130.237.80.51\Runs\ """ new_path = path - if "X:\\" in path: + if ":\\" in path: new_path = "\\\\130.237.80.51\\Runs" + path.split(":")[1] elif "\\clinicaldata\\Runs\\" in path: new_path = "\\\\130.237.80.51\\Runs" + path.split("Runs")[1]