Resolve component level mate not revealing connection count

This commit is contained in:
Daniel Rojas 2021-09-23 16:52:21 +02:00 committed by Laurier Loiselle
parent f20f313af0
commit def03d1ce3
No known key found for this signature in database
GPG Key ID: 345920CC72089A3F

View File

@ -142,10 +142,12 @@ def parse(yaml_input: str, file_out: (str, Path) = None, return_types: (None, st
else:
pass # strings do not reveal connectioncount
if not any(connectioncount):
raise Exception('No item in connection set revealed number of connections')
# TODO: The following should be a valid connection set,
# even though no item reveals the connection count;
# the count is not needed because only a component-level mate happens.
# no item in the list revealed connection count;
# assume connection count is 1
connectioncount = [1]
# Example: The following is a valid connection set,
# even though no item reveals the connection count;
# the count is not needed because only a component-level mate happens.
# -
# - CONNECTOR
# - ==>