Trying to change the roi on the ximea camera to anything containing an uneven value throws a ximea.xiapi.Xi_error: ERROR 101: Wrong parameter value
>>> # camera is a Ximea camera instance
>>> camera.get_binning()
Binning(h=1, v=1)
>>> camera.get_roi()
ROI(left=0, top=0, width=2048, height=2048)
>>> camera.set_roi((512, 512, 1024, 1024))
True
>>> camera.set_roi((513, 512, 1024, 1024))
Traceback (most recent call last):
File "/snap/pycharm-professional/354/plugins/python/helpers/pydev/pydevconsole.py", line 364, in runcode
coro = func()
^^^^^^
File "<input>", line 1, in <module>
File "/home/julio/PycharmProjects/microscope/microscope/abc.py", line 980, in set_roi
return self._set_roi(roi)
^^^^^^^^^^^^^^^^^^
File "/home/julio/PycharmProjects/microscope/microscope/cameras/ximea.py", line 416, in _set_roi
self._handle.set_offsetY(roi.top)
File "/home/julio/PycharmProjects/microscope/ximea/xiapi.py", line 1444, in set_offsetY
self.set_param('offsetY', offsetY)
File "/home/julio/PycharmProjects/microscope/ximea/xiapi.py", line 403, in set_param
raise Xi_error(stat)
ximea.xiapi.Xi_error: ERROR 101: Wrong parameter value
>>> camera.get_roi()
ROI(left=512, top=512, width=1024, height=1024)
>>> camera.set_roi((512, 512, 1023, 1024))
...
ximea.xiapi.Xi_error: ERROR 101: Wrong parameter value
Trying to change the roi on the ximea camera to anything containing an uneven value throws a
ximea.xiapi.Xi_error: ERROR 101: Wrong parameter value