We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27cffef commit 36d4416Copy full SHA for 36d4416
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