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

Small update

parent eb2a0a40
No related branches found
No related tags found
No related merge requests found
Pipeline #14485 failed with stage
in 2 minutes and 2 seconds
......@@ -515,13 +515,15 @@ class Process(Nextflow_Building_Blocks):
call = [f"{self.get_name()}({self.get_parameters_call()})"]
if(self.input_code!=""):
temp = code
code = code.replace(self.input_code, self.convert_input_code_to_DSL2())
if(temp==code):
old, new = self.input_code, self.convert_input_code_to_DSL2()
code = code.replace(old, new)
if(old!= new and temp==code):
raise Exception("This souldn't happen")
if(self.output_code!=""):
temp = code
code = code.replace(self.output_code, self.convert_output_code_to_DSL2())
if(temp==code):
old, new = self.output_code, self.convert_output_code_to_DSL2()
code = code.replace(old, new)
if(old!= new and temp==code):
print(f'"{self.output_code}"')
print(f'"{self.convert_output_code_to_DSL2()}"')
raise Exception("This souldn't happen")
......
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