make sure transform is float-typed

This commit is contained in:
jan 2023-10-20 23:15:27 -07:00
parent e710fa44b5
commit ed433861e3

View File

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