From 33a1e2eb85c206e8cbcd90e8404ee813dbb02716 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sat, 5 Oct 2024 14:27:12 -0700 Subject: [PATCH] cleanup --- masque/ports.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/masque/ports.py b/masque/ports.py index 6f029b1..90ba729 100644 --- a/masque/ports.py +++ b/masque/ports.py @@ -467,7 +467,7 @@ class PortList(metaclass=ABCMeta): specifying port connections, find the transform which will correctly align the specified o_ports onto their respective s_ports. - Args:t + Args: s_ports: A list of stationary ports o_ports: A list of ports which are to be moved/mirrored. map_in: dict of `{'s_port': 'o_port'}` mappings, specifying @@ -523,8 +523,8 @@ class PortList(metaclass=ABCMeta): if not numpy.allclose(rotations[:1], rotations): rot_deg = numpy.rad2deg(rotations) msg = 'Port orientations do not match:\n' - for nn, (k, v) in enumerate(map_in.items()): - msg += f'{k} | {rot_deg[nn]:g} | {v}\n' + for nn, (kk, vv) in enumerate(map_in.items()): + msg += f'{kk} | {rot_deg[nn]:g} | {vv}\n' raise PortError(msg) pivot = o_offsets[0].copy() @@ -532,8 +532,8 @@ class PortList(metaclass=ABCMeta): translations = s_offsets - o_offsets if not numpy.allclose(translations[:1], translations): msg = 'Port translations do not match:\n' - for nn, (k, v) in enumerate(map_in.items()): - msg += f'{k} | {translations[nn]} | {v}\n' + for nn, (kk, vv) in enumerate(map_in.items()): + msg += f'{kk} | {translations[nn]} | {vv}\n' raise PortError(msg) return translations[0], rotations[0], o_offsets[0]