From ed6d64c7f9f661b039601a43365fec1203491b6f Mon Sep 17 00:00:00 2001 From: appel_c Date: Mon, 23 Jun 2025 16:07:14 +0200 Subject: [PATCH] fix(camera): fix num_rotation_90 for cameras --- debye_bec/devices/cameras/basler_cam.py | 2 +- debye_bec/devices/cameras/prosilica_cam.py | 2 +- tests/tests_devices/test_cameras.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debye_bec/devices/cameras/basler_cam.py b/debye_bec/devices/cameras/basler_cam.py index e38076a..fbf0477 100644 --- a/debye_bec/devices/cameras/basler_cam.py +++ b/debye_bec/devices/cameras/basler_cam.py @@ -31,6 +31,6 @@ class BaslerCam(DebyeBaseCamera, BaslerCamBase): PreviewSignal, name="preview", ndim=2, - num_rotation_90=-1, + num_rotation_90=3, doc="Preview signal for the camera.", ) diff --git a/debye_bec/devices/cameras/prosilica_cam.py b/debye_bec/devices/cameras/prosilica_cam.py index cbbc259..69846dd 100644 --- a/debye_bec/devices/cameras/prosilica_cam.py +++ b/debye_bec/devices/cameras/prosilica_cam.py @@ -34,6 +34,6 @@ class ProsilicaCam(DebyeBaseCamera, ProsilicaCamBase): PreviewSignal, name="preview", ndim=2, - num_rotation_90=-1, + num_rotation_90=3, doc="Preview signal for the camera.", ) diff --git a/tests/tests_devices/test_cameras.py b/tests/tests_devices/test_cameras.py index fba8ac3..7fcb078 100644 --- a/tests/tests_devices/test_cameras.py +++ b/tests/tests_devices/test_cameras.py @@ -40,7 +40,7 @@ def test_basler_init(mock_basler): assert mock_basler._live_mode_event is None assert mock_basler._task_status is None assert mock_basler.preview.ndim == 2 - assert mock_basler.preview.num_rotation_90 == -1 + assert mock_basler.preview.num_rotation_90 == 3 @pytest.fixture(scope="function") @@ -67,4 +67,4 @@ def test_prosilica_init(mock_prosilica): assert mock_prosilica._live_mode_event is None assert mock_prosilica._task_status is None assert mock_prosilica.preview.ndim == 2 - assert mock_prosilica.preview.num_rotation_90 == -1 + assert mock_prosilica.preview.num_rotation_90 == 3