simplify comparison

This commit is contained in:
Jan Petykiewicz 2024-07-28 20:34:25 -07:00
parent 97688ffae1
commit 810a09f18b

View File

@ -286,7 +286,7 @@ class Arc(Shape):
return thetas return thetas
wh = self.width / 2.0 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 thetas_inner = numpy.zeros(1) # Don't generate multiple vertices if we're at the origin
else: else:
thetas_inner = get_thetas(inner=True) thetas_inner = get_thetas(inner=True)