From 56eb1eb01ced2032b9089a4502c599687ac0e7ab Mon Sep 17 00:00:00 2001 From: George Marchment <georgemarchment@yahoo.fr> Date: Mon, 17 Feb 2025 19:43:05 +0100 Subject: [PATCH] remove useless prints --- src/call.py | 1 - src/workflow.py | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/call.py b/src/call.py index 9a78472..d885469 100644 --- a/src/call.py +++ b/src/call.py @@ -100,7 +100,6 @@ class Call(Executor): elif(param.get_type()=="Emitted"): None else: - print(param) raise Exception("This shouldn't happen") index+=1 return code.replace(tag_to_add, "").strip() diff --git a/src/workflow.py b/src/workflow.py index 4e0e863..fe2baf4 100644 --- a/src/workflow.py +++ b/src/workflow.py @@ -476,7 +476,6 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen if(exe.get_type()=="Call" or exe.get_type()=="Operation"): code = code.replace(exe.get_code(get_OG = True), exe.simplify_code(), 1) else: - print(exe.get_code(), exe.get_type()) raise Exception("This shouldn't happen") return code @@ -620,7 +619,6 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen elif(ele.get_type() == "Call"): for param in ele.get_parameters(): if(param.get_type()=="Channel"): - print(param, param.get_code()) raise Exception("This shouldn't happen -> with the rewrite all the params should be channels") else: for o in param.get_origins(): @@ -634,9 +632,7 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen takes = [] for channel in channels_2_sources: if(set(channels_2_sources[channel]).intersection(things_added_in_cluster)!=set(channels_2_sources[channel])): - takes.append(channel) - #print(things_added_in_cluster) - #print(channels_2_operations_needed) + takes.append(channel) return takes #This Function returns the channels the subworkflow (things_added_in_cluster) emits (other things depend on) @@ -658,7 +654,6 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen for e in ele.get_later_emits(): channel_2_sink[e] = replace_thing_by_call(e.get_sink()) else: - print(ele) raise Exception("This shouldn't happen") for channel in channel_2_sink: @@ -751,7 +746,6 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen # c = clusters[i] # if(len(c)>1): # clusters[i] = self.nextflow_file.graph.get_induced_subgraph(c) - #print(clusters) #Get the topological order clusters = self.graph.get_topogical_order(clusters) @@ -804,7 +798,6 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen if(not ele.get_artificial_status()): #If first element -> add marker for the subworkflow call - print(ele.get_code(get_OG = True)) if(first_element): code = code.replace(ele.get_code(get_OG = True), f"//Anker_cluster{index_cluster}", 1) first_element = False @@ -958,7 +951,6 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen #Replace the ankers by the calls of the subworkflows for i in range(len(subworkflow_clusters_to_add)): - #print(f"//Anker_cluster{i}", subworkflow_cluster_calls_to_add[i]) code = code.replace(f"//Anker_cluster{i}", subworkflow_cluster_calls_to_add[i]) -- GitLab