Skip to content

Commit

Permalink
going with straight lists for now
Browse files Browse the repository at this point in the history
  • Loading branch information
CPrescher committed Jul 24, 2024
1 parent 8bf0986 commit dd82d26
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions glassure/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}")


Expand Down

0 comments on commit dd82d26

Please sign in to comment.