Commit 3f9178f8 authored by Valentin Valls's avatar Valentin Valls
Browse files

Test bigger detector than 1024

parent bb8f7989
Pipeline #63342 passed with stages
in 19 minutes and 32 seconds
......@@ -121,7 +121,7 @@ def test_external_trigger_multi():
assert acq_status.last_image_ready == 2
def test_detector_size():
def test_small_detector_size():
"""Change the size of the simulator
Make sure the hardware detector size matches the request
......@@ -137,6 +137,22 @@ def test_detector_size():
assert detinfo.getMaxImageSize() == Core.Size(100, 100)
def test_big_detector_size():
"""Change the size of the simulator
Make sure the hardware detector size matches the request
"""
cam = Simulator.Camera()
hw = Simulator.Interface(cam)
ct = Core.CtControl(hw)
cam.setFrameDim(Core.FrameDim(2048, 2000, Core.Bpp32))
dim = ct.image().getImageDim()
assert dim.getSize() == Core.Size(2048, 2000)
detinfo = hw.getHwCtrlObj(Core.HwCap.DetInfo)
assert detinfo.getMaxImageSize() == Core.Size(2048, 2000)
def test_update_mode():
"""Change the simulator mode of the detector
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment