Skip to content

Commit 28afb48

Browse files
committed
Exposed image_bin_mode
1 parent 96bd9f8 commit 28afb48

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lima/Server/LimaCCDs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ def init_device(self):
510510
"saving_managed_mode": "ManagedMode",
511511
"shutter_mode": "Mode",
512512
"image_rotation": "Rotation",
513+
"image_bin_mode": "BinMode",
513514
"video_mode": "Mode",
514515
"buffer_max_number": "MaxNumber",
515516
"acc_mode": "Mode",
@@ -588,6 +589,12 @@ def init_device(self):
588589
"270": Core.Rotation_270,
589590
}
590591

592+
if SystemHasFeature("Core.Bin_Sum"):
593+
self.__ImageBinMode = {
594+
"SUM": Core.Bin_Sum,
595+
"MEAN": Core.Bin_Mean,
596+
}
597+
591598
if SystemHasFeature("Core.CtAccumulation.Parameters.STANDARD"):
592599
self.__AccMode = {
593600
"STANDARD": Core.CtAccumulation.Parameters.STANDARD,
@@ -2676,6 +2683,7 @@ class LimaCCDsClass(PyTango.DeviceClass):
26762683
"image_width": [[PyTango.DevULong, PyTango.SCALAR, PyTango.READ]],
26772684
"image_height": [[PyTango.DevULong, PyTango.SCALAR, PyTango.READ]],
26782685
"image_bin": [[PyTango.DevULong, PyTango.SPECTRUM, PyTango.READ_WRITE, 2]],
2686+
"image_bin_mode": [[PyTango.DevString, PyTango.SCALAR, PyTango.READ_WRITE]],
26792687
"image_flip": [[PyTango.DevBoolean, PyTango.SPECTRUM, PyTango.READ_WRITE, 2]],
26802688
"image_rotation": [[PyTango.DevString, PyTango.SCALAR, PyTango.READ_WRITE]],
26812689
"last_image_acquired": [[PyTango.DevLong, PyTango.SCALAR, PyTango.READ]],

0 commit comments

Comments
 (0)