From dd82d2672b4c573f074c44e0d2b97db0c0c21d99 Mon Sep 17 00:00:00 2001 From: Clemens Prescher Date: Wed, 24 Jul 2024 14:38:13 +0200 Subject: [PATCH] going with straight lists for now --- glassure/pattern.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/glassure/pattern.py b/glassure/pattern.py index 14ebded..87e1c66 100644 --- a/glassure/pattern.py +++ b/glassure/pattern.py @@ -342,9 +342,7 @@ def validate(value): def serialize(value): if isinstance(value, np.ndarray): # Save numpy array to bytes - with io.BytesIO() as buffer: - np.save(buffer, value, allow_pickle=False) - return buffer.getvalue() + return value.tolist() raise TypeError(f"Invalid type for numpy array: {type(value)}")