From e77911b134142596aa9df18883f5c7bb2211cf9d Mon Sep 17 00:00:00 2001 From: George Marchment <georgemarchment@yahoo.fr> Date: Thu, 20 Mar 2025 14:32:58 +0100 Subject: [PATCH] Small update --- src/process.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/process.py b/src/process.py index 07ff0b1..bc1f5ce 100644 --- a/src/process.py +++ b/src/process.py @@ -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") -- GitLab