fix(allied_vision_camera): transpose fix
Some checks failed
CI for csaxs_bec / test (push) Failing after 1m53s
Some checks failed
CI for csaxs_bec / test (push) Failing after 1m53s
This commit is contained in:
@@ -41,6 +41,7 @@ class AlliedVisionCamera(PSIDeviceBase, DetectorBase):
|
||||
name="preview",
|
||||
ndim=2,
|
||||
num_rotation_90=0,
|
||||
transpose=False,
|
||||
doc="Preview signal of the AlliedVision camera.",
|
||||
)
|
||||
|
||||
@@ -58,6 +59,8 @@ class AlliedVisionCamera(PSIDeviceBase, DetectorBase):
|
||||
name: str,
|
||||
prefix: str,
|
||||
poll_rate: int = 5,
|
||||
num_rotation_90: int = 0,
|
||||
transpose: bool = False,
|
||||
scan_info=None,
|
||||
device_manager=None,
|
||||
**kwargs,
|
||||
@@ -77,6 +80,8 @@ class AlliedVisionCamera(PSIDeviceBase, DetectorBase):
|
||||
self._unique_array_id = 0
|
||||
self._pv_timeout = 2.0
|
||||
self.image: ImagePlugin
|
||||
self.preview.num_rotation_90 = num_rotation_90
|
||||
self.preview.transpose = transpose
|
||||
self._live_mode_lock = threading.RLock()
|
||||
self.live_mode_enabled.subscribe(self._on_live_mode_enabled_changed, run=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user