from jeputils import * def profile_gauss_stats(x, y, off=None, amp=None, com=None, sigma=None): ret = call_jep("cpython/GaussFit", "profile_gauss_stats", [to_npa(x), to_npa(y), off, amp, com, sigma]) return ret if ret is None or is_list(ret) else ret.data