make sure transform is float-typed
This commit is contained in:
parent
e710fa44b5
commit
ed433861e3
@ -455,7 +455,7 @@ class ILibraryView(Mapping[str, 'Pattern'], metaclass=ABCMeta):
|
|||||||
if transform is None or transform is True:
|
if transform is None or transform is True:
|
||||||
transform = numpy.zeros(4)
|
transform = numpy.zeros(4)
|
||||||
elif transform is not False:
|
elif transform is not False:
|
||||||
transform = numpy.array(transform)
|
transform = numpy.array(transform, dtype=float, copy=False)
|
||||||
|
|
||||||
original_pattern = pattern
|
original_pattern = pattern
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user