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

Remove the GGs

parent bbf5461e
No related branches found
No related tags found
No related merge requests found
Pipeline #14504 failed with stage
in 2 minutes and 20 seconds
......@@ -743,7 +743,11 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen
return emits
def remove_GG_from_code(self, code):
def replacer(match):
return match.group(1)
return re.sub(f"(\w+)_GG_\d+", replacer, code)
#Method which rewrites the workflow follwong the user view
#Conert workflow to user_view only makes sense when the option duplicate is activated -> otherwise is doesn't make sense + it makes the analysis way more complicated
def convert_workflow_2_user_view(self, relevant_processes = [], render_graphs = True):
......@@ -1172,6 +1176,7 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen
code = code.replace("$OR$", "||")
code = self.put_modified_operations_back(code, map_element_dico)
code = remove_extra_jumps(format_with_tabs(code))
code = self.remove_GG_from_code(code)
f = open(self.get_output_dir()/ "debug" / "rewritten.nf", "w")
f.write(code)
f.close()
......
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