.mirrored should be an ndarray

lethe/HEAD
Jan Petykiewicz 5 years ago
parent bece3136be
commit 7b0a567625

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

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

Loading…
Cancel
Save