Skip to content

Commit

Permalink
Resolve component level mate not revealing connection count
Browse files Browse the repository at this point in the history
  • Loading branch information
17o2 authored and laurierloi committed Jan 19, 2023
1 parent f20f313 commit def03d1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/wireviz/wireviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@ def alternate_type(): # flip between connector and cable/arrow
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
# - ==>
Expand Down

0 comments on commit def03d1

Please sign in to comment.