From 56f7849e812b6942a565ecda9dcbd4a40ff4576f Mon Sep 17 00:00:00 2001 From: Philip Manke Date: Tue, 3 Sep 2024 13:54:05 +0200 Subject: [PATCH] Add attributes to sensor info --- cuvis/cuvis_aux.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cuvis/cuvis_aux.py b/cuvis/cuvis_aux.py index 22c7078..5f918c6 100644 --- a/cuvis/cuvis_aux.py +++ b/cuvis/cuvis_aux.py @@ -96,6 +96,8 @@ class SensorInfo(object): width: int height: int raw_frame_id: int + pixel_format: str + binning: bool @classmethod def _from_internal(cls, info): @@ -106,7 +108,9 @@ def _from_internal(cls, info): milliseconds=info.readout_time), width=info.width, height=info.height, - raw_frame_id=info.raw_frame_id) + raw_frame_id=info.raw_frame_id, + pixel_format=info.pixel_format, + binning=(info.binning != 0)) @dataclass