This commit is contained in:
gobbo_a
2023-08-17 15:16:51 +02:00
parent c545879253
commit 8beeb7dbc7
134 changed files with 3722 additions and 1287 deletions

View File

@@ -1,8 +1,29 @@
from jeputils import *
"""
import_py("CPython/linfit", "test")
def test():
return np.ones(5)
print test()
"""
"""
def test2(name, x=None, y=None):
print (name)
return x+y
import_py("CPython/linfit", "test2")
print test2("x", to_array([0,1,2,3,4],'d'), to_array([5,1,2,3,4],'d'))
"""
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")
ret = call_jep("test/cpython", "test_pandas")