From 056e6ec966a13f4619adf9a703929fb523630a9a Mon Sep 17 00:00:00 2001 From: George Marchment <georgemarchment@yahoo.fr> Date: Fri, 21 Mar 2025 14:43:20 +0100 Subject: [PATCH] Added error filter in DSL1 converter -> catches a strange thing --- src/process.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/process.py b/src/process.py index 40f8f76..c82cac1 100644 --- a/src/process.py +++ b/src/process.py @@ -462,6 +462,8 @@ class Process(Nextflow_Building_Blocks): #code = process_2_DSL2(code) lines = [] for line in code.split("\n"): + if(" def " in " "+line): + raise BioFlowInsightError(f"[DSL1 converter error] Do not recognise the input '{line.strip()}' in the process '{self.get_name()}'. Try rewritting it in a different way.") temp = process_2_DSL2(line.split(" from ")[0]) lines.append(temp) #TODO -> need to determine if it's on it's own is it either a path or val -- GitLab