From 810a09f18b28cbac17a376c5795bf8e3a42761bd Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 28 Jul 2024 20:34:25 -0700 Subject: [PATCH] simplify comparison --- masque/shapes/arc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/shapes/arc.py b/masque/shapes/arc.py index 4213229..8d14f0f 100644 --- a/masque/shapes/arc.py +++ b/masque/shapes/arc.py @@ -286,7 +286,7 @@ class Arc(Shape): return thetas wh = self.width / 2.0 - if wh == r0 or wh == r1: + if wh in (r0, r1): thetas_inner = numpy.zeros(1) # Don't generate multiple vertices if we're at the origin else: thetas_inner = get_thetas(inner=True)