Improve consistency of ndarray members
This commit is contained in:
parent
9fa527ea11
commit
fa8fc52dd6
6 changed files with 9 additions and 9 deletions
|
|
@ -153,7 +153,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 = numpy.array(val, dtype=bool)
|
||||
self._mirrored = numpy.array(val, dtype=bool, copy=True)
|
||||
|
||||
def as_pattern(self) -> 'Pattern':
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue