lima tests broken since Lima 1.9.6
@claustre @debionne some things have changed...
When getting a rotated image ROI, shape is wrong ? (x and y are inverted)
5 tests are failing
Example:
def test_lima_image_bin_roi(beacon, default_session, lima_simulator):
cam = beacon.get("lima_simulator")
cam.image.bin = [2, 2]
cam.image.roi = [156, 181, 200, 150]
s = loopscan(1, 0.01, cam)
cam_img = s.get_data()["image"].get_last_image().data
> assert cam_img.shape == (200, 150)
E assert (150, 200) == (200, 150)
E At index 0 diff: 150 != 200
E Full diff:
E - (150, 200)
E + (200, 150)
tests/controllers_sw/test_lima_roi.py:277: AssertionError
(our Lima simulator image is rotated by 90 degrees => test with Lima 1.9.4 was ok)
Edited by Matias Guijarro