Add TODO re. missing connection count

This commit is contained in:
Daniel Rojas 2020-11-15 17:27:59 +01:00
parent 87cde3b21f
commit 81940469ac

View File

@ -109,6 +109,13 @@ def parse(yaml_input: str, file_out: (str, Path) = None, return_types: (None, st
connectioncount.append(None) # 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.
# -
# - CONNECTOR
# - ==>
# - CONNECTOR
# check that all entries are the same length
if len(set(filter(None, connectioncount))) > 1: