We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 27cffef + 36d4416 commit 128d467Copy full SHA for 128d467
1 file changed
wolframclient/serializers/encoders/numpy.py
@@ -41,6 +41,9 @@ def to_little_endian(array, inplace=False):
41
@encoder.dispatch(numpy.ndarray)
42
def encode_ndarray(serializer, o):
43
44
+ if not o.shape:
45
+ return serializer.encode(o.item())
46
+
47
try:
48
wl_type = NUMPY_MAPPING[o.dtype.type]
49
except KeyError:
0 commit comments