[Pather / planner / ports] improve trace_into connection accuracy

This commit is contained in:
Jan Petykiewicz 2026-07-16 08:35:46 -07:00
commit 2b6782c93e
4 changed files with 35 additions and 8 deletions

View file

@ -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)