From b8ee4bb05d4effea8a9bab0bc61a6a713008b33a Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 9 Mar 2026 02:32:20 -0700 Subject: [PATCH] [ell] fix set_rotation check --- masque/builder/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/builder/utils.py b/masque/builder/utils.py index 3109f46..5680694 100644 --- a/masque/builder/utils.py +++ b/masque/builder/utils.py @@ -106,7 +106,7 @@ def ell( raise BuildError('Asked to find aggregation for ports that face in different directions:\n' + pformat(port_rotations)) else: - if set_rotation is not None: + if set_rotation is None: raise BuildError('set_rotation must be specified if no ports have rotations!') rotations = numpy.full_like(has_rotation, set_rotation, dtype=float)