Skip to content
Snippets Groups Projects
Commit 1eb23623 authored by imcovangent's avatar imcovangent
Browse files

KE-Chain workshop - bug fix merge functions

Former-commit-id: 13a315f67530755c2775a6cc9cc3f813203506c0
parent 4d309e13
No related branches found
No related tags found
No related merge requests found
Pipeline #192780 canceled
...@@ -1371,7 +1371,7 @@ class KadmosGraph(nx.DiGraph): ...@@ -1371,7 +1371,7 @@ class KadmosGraph(nx.DiGraph):
   
# Handle the fact that the *args could also be a list or tuple directly # Handle the fact that the *args could also be a list or tuple directly
if len(args) == 1 and (isinstance(args[0], tuple) or isinstance(args[0], list)): if len(args) == 1 and (isinstance(args[0], tuple) or isinstance(args[0], list)):
args = [args[0]] args = list(args[0])
   
# Input assertions # Input assertions
assert len(args) > 1, 'More than 1 input argument is required.' assert len(args) > 1, 'More than 1 input argument is required.'
...@@ -1428,7 +1428,7 @@ class KadmosGraph(nx.DiGraph): ...@@ -1428,7 +1428,7 @@ class KadmosGraph(nx.DiGraph):
   
# Handle the fact that the *args could also be a list or tuple directly # Handle the fact that the *args could also be a list or tuple directly
if len(args) == 1 and (isinstance(args[0], tuple) or isinstance(args[0], list)): if len(args) == 1 and (isinstance(args[0], tuple) or isinstance(args[0], list)):
args = [args[0]] args = list(args[0])
   
# Input assertions # Input assertions
assert len(args) > 1, 'More than 1 input is required for this function.' assert len(args) > 1, 'More than 1 input is required for this function.'
......
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