diff --git a/masque/repetition.py b/masque/repetition.py index ccdf529..7885067 100644 --- a/masque/repetition.py +++ b/masque/repetition.py @@ -170,7 +170,7 @@ class GridRepetition: def mirrored(self, val: List[bool]): if is_scalar(val): raise PatternError('Mirrored must be a 2-element list of booleans') - self._mirrored = val + self._mirrored = numpy.array(val, dtype=bool) # a_vector property @property diff --git a/masque/subpattern.py b/masque/subpattern.py index f76605b..a8089cd 100644 --- a/masque/subpattern.py +++ b/masque/subpattern.py @@ -115,7 +115,7 @@ class SubPattern: def mirrored(self, val: List[bool]): if is_scalar(val): raise PatternError('Mirrored must be a 2-element list of booleans') - self._mirrored = val + self._mirrored = numpy.array(val, dtype=bool) def as_pattern(self) -> 'Pattern': """