#from jeputils import *

eval_jep("import jepscript3")
eval_jep("reload(jepscript3)")


N = 600    # Number of sample points
T = 1.0 / 800.0    # sample spacing
F = [(1.0,50.0), (0.5,80.0)]    #Sinuoisids
(x,y) = call_jep("jepscript3", "get_f", [N,T,F])


ret = call_jep("jepscript3", "get_fft2", [y,])
print "---"
print ret
print "---"

"""
ret = call_jep("jepscript3", "get_fft", [x,y,T])


print ret
(xf,yf,yfp) = ret

plot(y, xdata = x)    
plot(yfp, xdata = xf)  
"""