File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,3 +25,6 @@ def __getitem__(self, k):
2525
2626 def __len__ (self ):
2727 return len (self .array )
28+
29+ class PackedArray (NumericArray ):
30+ pass
Original file line number Diff line number Diff line change 22
33import math
44
5- from wolframclient .language .array import NumericArray
5+ from wolframclient .language .array import NumericArray , PackedArray
66from wolframclient .language .expression import WLFunction , WLInputExpression , WLSymbol
77from wolframclient .serializers .serializable import WLSerializable
88from wolframclient .serializers .utils import safe_len
@@ -179,3 +179,7 @@ def encode_association(serializer, o):
179179@encoder .dispatch (NumericArray )
180180def encode_array (serializer , o ):
181181 return serializer .serialize_numeric_array (o .tobytes (), o .shape , o .type )
182+
183+ @encoder .dispatch (PackedArray )
184+ def encode_array (serializer , o ):
185+ return serializer .serialize_packed_array (o .tobytes (), o .shape , o .type )
You can’t perform that action at this time.
0 commit comments