Skip to content
Snippets Groups Projects
Commit 056e6ec9 authored by George Marchment's avatar George Marchment
Browse files

Added error filter in DSL1 converter -> catches a strange thing

parent f0484852
No related branches found
No related tags found
No related merge requests found
Pipeline #14491 failed with stage
in 2 minutes and 2 seconds
...@@ -462,6 +462,8 @@ class Process(Nextflow_Building_Blocks): ...@@ -462,6 +462,8 @@ class Process(Nextflow_Building_Blocks):
#code = process_2_DSL2(code) #code = process_2_DSL2(code)
lines = [] lines = []
for line in code.split("\n"): 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]) temp = process_2_DSL2(line.split(" from ")[0])
lines.append(temp) lines.append(temp)
#TODO -> need to determine if it's on it's own is it either a path or val #TODO -> need to determine if it's on it's own is it either a path or val
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment