From 52c6634a25535d77a53bebb36a44c6248b05f5ec Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Wed, 23 Jun 2021 22:35:43 -0700 Subject: [PATCH] fix port comparison regression --- masque/builder/devices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/masque/builder/devices.py b/masque/builder/devices.py index f2f3501..74e7b72 100644 --- a/masque/builder/devices.py +++ b/masque/builder/devices.py @@ -624,7 +624,8 @@ class Device(Copyable, Mirrorable): o_rotations *= -1 o_rotations += pi - type_conflicts = numpy.array([st != ot and st != 'unk' and ot != 'unk' for st, ot in (s_types, o_types)]) + type_conflicts = numpy.array([st != ot and st != 'unk' and ot != 'unk' + for st, ot in zip(s_types, o_types)]) if type_conflicts.any(): ports = numpy.where(type_conflicts) msg = 'Ports have conflicting types:\n'