From e48183ee0bd388f1cd96d24eaa7c80945d9aadc6 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Thu, 7 Apr 2022 17:47:30 -0700 Subject: [PATCH] dose==1 is the identity situation --- masque/subpattern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/subpattern.py b/masque/subpattern.py index 0fd15b4..39dfa94 100644 --- a/masque/subpattern.py +++ b/masque/subpattern.py @@ -147,7 +147,7 @@ class SubPattern(PositionableImpl, DoseableImpl, RotatableImpl, ScalableImpl, Mi pattern.rotate_around((0.0, 0.0), self.rotation) if numpy.any(self.offset): pattern.translate_elements(self.offset) - if self.dose != 0: + if self.dose != 1: pattern.scale_element_doses(self.dose) if self.repetition is not None: