Skip to content

Commit 4dbb8f4

Browse files
committed
NumericArray is supposed to be initialized by a list of python numbers
1 parent 5857ac7 commit 4dbb8f4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

wolframclient/cli/commands/benchmark.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from wolframclient.utils.functional import first
1414
from wolframclient.utils.importutils import safe_import_string_and_call
1515
from wolframclient.language.array import NumericArray, PackedArray
16-
from wolframclient.utils.api import numpy
1716

1817
def repeat(el, n=1):
1918
return tuple(el for _ in range(n))
@@ -43,7 +42,7 @@ def expression_handler(self, complexity):
4342
"functions": repeat(wl.Function(1, 2, 3), complexity),
4443
},
4544
'array': {
46-
'%s_%s' % (func.__name__, t): func(numpy.arange(complexity * 100), t)
45+
'%s_%s' % (func.__name__, t): func(tuple(range(complexity * 100)), t)
4746
for func in (PackedArray, NumericArray)
4847
for t in ('Integer64', 'Real64')
4948
}

0 commit comments

Comments
 (0)