Resolve component level mate not revealing connection count
This commit is contained in:
parent
2a62dae9ee
commit
2d701ee652
@ -139,10 +139,12 @@ def parse(yaml_input: str, file_out: (str, Path) = None, return_types: (None, st
|
|||||||
else:
|
else:
|
||||||
pass # strings do not reveal connectioncount
|
pass # strings do not reveal connectioncount
|
||||||
if not any(connectioncount):
|
if not any(connectioncount):
|
||||||
raise Exception('No item in connection set revealed number of connections')
|
# no item in the list revealed connection count;
|
||||||
# TODO: The following should be a valid connection set,
|
# assume connection count is 1
|
||||||
# even though no item reveals the connection count;
|
connectioncount = [1]
|
||||||
# the count is not needed because only a component-level mate happens.
|
# 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
|
# - CONNECTOR
|
||||||
# - ==>
|
# - ==>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user