From 8fb088227f4ffd1b45823309feb65cc6495fb19a Mon Sep 17 00:00:00 2001 From: Martin Yeo <40734014+trexfeathers@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:42:56 +0100 Subject: [PATCH] Call np.import_array(). (#83) --- src/mo_pack/_packing.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mo_pack/_packing.pyx b/src/mo_pack/_packing.pyx index 229d6a4..b8de728 100644 --- a/src/mo_pack/_packing.pyx +++ b/src/mo_pack/_packing.pyx @@ -5,6 +5,8 @@ import numpy as np cimport numpy as np +# Must be called to use the C-API with Numpy +np.import_array() #: The WGDOS packing algorithm generally produces smaller data payloads #: than the unpacked equivalent. However this is not a given, especially