From 7f927c46b3f9fa106f678703bd909e18c662986a Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Fri, 27 Oct 2023 23:31:22 -0700 Subject: [PATCH] another arc fix --- masque/shapes/arc.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/masque/shapes/arc.py b/masque/shapes/arc.py index a2631c4..b69d9b5 100644 --- a/masque/shapes/arc.py +++ b/masque/shapes/arc.py @@ -244,8 +244,12 @@ class Arc(Shape): removable = (numpy.cumsum(arc_lengths[next_to_keep + 1:]) <= max_arclen) start = next_to_keep + 1 if keep[-1] != thetas.size - 1: - keep.append(thetas.size -1) - return thetas[keep] + keep.append(thetas.size - 1) + + thetas = thetas[keep] + if inner: + thetas = thetas[::-1] + return thetas wh = self.width / 2.0 if wh == r0 or wh == r1: