.mirrored should be an ndarray
This commit is contained in:
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…
Reference in New Issue
Block a user