should be casting with numpy.array() not .ndarray()

This commit is contained in:
Jan Petykiewicz 2021-06-22 19:00:43 -07:00
parent 4796676a4e
commit 886bd59726

View File

@ -58,7 +58,7 @@ class Text(RotatableImpl, Shape, metaclass=AutoSlots):
def mirrored(self, val: Sequence[bool]): def mirrored(self, val: Sequence[bool]):
if is_scalar(val): if is_scalar(val):
raise PatternError('Mirrored must be a 2-element list of booleans') raise PatternError('Mirrored must be a 2-element list of booleans')
self._mirrored = numpy.ndarray(val, dtype=bool, copy=True) self._mirrored = numpy.array(val, dtype=bool, copy=True)
def __init__(self, def __init__(self,
string: str, string: str,