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]