This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user