Files
sf-op/script/test/TestCPython.py
2021-08-17 14:06:14 +02:00

8 lines
303 B
Python
Executable File

from jeputils import *
data, dims = [1,2,3,4,5,6,7,8,9,0], [2,5]
array = to_npa(data, dims,'d') #Auxiliary function to create numpy arrays from lists or java arrays.
ret = call_jep("test/cpython", "calc", [array,])
print ret.getDimensions(),ret.getData()
ret = call_jep("test/cpython", "test_pandas")