.mirrored should be an ndarray

This commit is contained in:
Jan Petykiewicz 2019-12-04 23:30:46 -08:00
parent bece3136be
commit 7b0a567625
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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':
"""