This commit is contained in:
sfop
2017-05-17 08:52:23 +02:00
parent ee6689d661
commit e0cb8c5abe
11 changed files with 112 additions and 19 deletions

10
script/CPython/wrapper.py Normal file
View File

@@ -0,0 +1,10 @@
from jeputils import *
def hfitoff(data, xdeg):
ret = call_jep("CPython/hfitoff", "hfitoff", [to_npa(data),to_npa(xdeg)])
print ret
return (ret[0], ret[1], ret[2],ret[3], ret[4], ret[5].data,ret[6].data)
def gfitoff(x, y, off=None, amp=None, com=None, sigma=None):
ret = call_jep("CPython/gfitoff", "gfitoff", [to_npa(x), to_npa(y), off, amp, com, sigma])
return ret if ret is None or is_list(ret) else ret.data