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

Fix problem identification of names of channels: basically just added a strip()

parent 31f21930
No related branches found
No related tags found
No related merge requests found
Pipeline #14208 passed with stages
in 3 minutes and 37 seconds
...@@ -14,7 +14,7 @@ class Channel(Nextflow_Building_Blocks): ...@@ -14,7 +14,7 @@ class Channel(Nextflow_Building_Blocks):
""" """
def __init__(self, name, origin): def __init__(self, name, origin):
self.name = name self.name = name.strip()
self.origin = origin self.origin = origin
to_call = self.get_name_processes_subworkflows() to_call = self.get_name_processes_subworkflows()
if(self.name in to_call): if(self.name in to_call):
......
...@@ -183,6 +183,7 @@ class Operation(Executor): ...@@ -183,6 +183,7 @@ class Operation(Executor):
channel.add_source(self) channel.add_source(self)
def add_origin(self, name): def add_origin(self, name):
name = name.strip()
#Check that it's not already been added #Check that it's not already been added
added = False added = False
for o in self.origins: for o in self.origins:
......
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