New ScreenPanel
This commit is contained in:
22
script/cpython/wrapper.py
Executable file
22
script/cpython/wrapper.py
Executable file
@@ -0,0 +1,22 @@
|
||||
from jeputils import *
|
||||
|
||||
|
||||
def gfitoff(x, y, off=None, amp=None, com=None, sigma=None):
|
||||
ret = call_jep("cpython/GaussFit", "gfitoff", [to_npa(x), to_npa(y), off, amp, com, sigma])
|
||||
return ret if ret is None or is_list(ret) else ret.data
|
||||
|
||||
|
||||
|
||||
|
||||
from jeputils import *
|
||||
MODULE = "cpython/SimulatedCamera"
|
||||
|
||||
|
||||
def new_simulated_camera(size_x=1280, size_y=960, number_of_dead_pixels=100, noise=0.1, beam_size_x=100, beam_size_y=20):
|
||||
ret = call_jep("cpython/SimulatedCamera", "new_simulated_camera", [None, size_x, size_y, number_of_dead_pixels, noise, beam_size_x, beam_size_y ])
|
||||
return ret
|
||||
|
||||
def get_image(raw=False):
|
||||
ret = call_jep("cpython/SimulatedCamera", "get_image", [raw])
|
||||
return ret.data
|
||||
|
||||
Reference in New Issue
Block a user