From ed433861e3e9586fa0f551f164d7ff641fd15ce7 Mon Sep 17 00:00:00 2001 From: jan Date: Fri, 20 Oct 2023 23:15:27 -0700 Subject: [PATCH] make sure transform is float-typed --- masque/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/library.py b/masque/library.py index 96a6de4..e4e60e7 100644 --- a/masque/library.py +++ b/masque/library.py @@ -455,7 +455,7 @@ class ILibraryView(Mapping[str, 'Pattern'], metaclass=ABCMeta): if transform is None or transform is True: transform = numpy.zeros(4) elif transform is not False: - transform = numpy.array(transform) + transform = numpy.array(transform, dtype=float, copy=False) original_pattern = pattern