[Pather / planner / ports] improve trace_into connection accuracy
This commit is contained in:
parent
e397b3f96e
commit
2b6782c93e
4 changed files with 35 additions and 8 deletions
|
|
@ -574,10 +574,10 @@ class PortList(metaclass=ABCMeta):
|
|||
raise PortError(msg)
|
||||
|
||||
translations = a_offsets - b_offsets
|
||||
if not numpy.allclose(translations, 0):
|
||||
if not numpy.allclose(a_offsets, b_offsets):
|
||||
msg = 'Port translations do not match:\n'
|
||||
for nn, (kk, vv) in enumerate(connections.items()):
|
||||
if not numpy.allclose(translations[nn], 0):
|
||||
if not numpy.allclose(a_offsets[nn], b_offsets[nn]):
|
||||
msg += f'{kk} | {translations[nn]} | {vv}\n'
|
||||
raise PortError(msg)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue