Skip to content

Commit d2bd2e6

Browse files
committed
renaming to numeric array
1 parent 32472ad commit d2bd2e6

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

wolframclient/language/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from collections import Sequence
1010

1111

12-
class PythonArray(Sequence):
12+
class NumericArray(Sequence):
1313
def __init__(self, array, type, shape=None):
1414

1515
self.array = array

wolframclient/serializers/encoders/builtin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import math
44

5-
from wolframclient.language.array import PythonArray
5+
from wolframclient.language.array import NumericArray
66
from wolframclient.language.expression import WLFunction, WLInputExpression, WLSymbol
77
from wolframclient.serializers.serializable import WLSerializable
88
from wolframclient.serializers.utils import safe_len
@@ -176,6 +176,6 @@ def encode_association(serializer, o):
176176
return _to_key_value(serializer.serialize_association, serializer, o)
177177

178178

179-
@encoder.dispatch(PythonArray)
179+
@encoder.dispatch(NumericArray)
180180
def encode_array(serializer, o):
181181
return serializer.serialize_numeric_array(o.tobytes(), o.shape, o.type)

wolframclient/tests/serializers/wxf_pythonarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import absolute_import, print_function, unicode_literals
44

5-
from wolframclient.language.array import PythonArray
5+
from wolframclient.language.array import NumericArray
66
from wolframclient.serializers import export
77
from wolframclient.utils.api import numpy
88
from wolframclient.utils.tests import TestCase as BaseTestCase
@@ -28,5 +28,5 @@ def test_python_array(self):
2828

2929
self.assertEqual(
3030
export(arr, target_format="wxf"),
31-
export(PythonArray(array, wl_type, shape = shape), target_format="wxf"),
31+
export(NumericArray(array, wl_type, shape = shape), target_format="wxf"),
3232
)

0 commit comments

Comments
 (0)