mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
refactor
This commit is contained in:
@ -2016,11 +2016,11 @@ class Detector(CppDetectorApi):
|
||||
By default, the on-chip gain switching is active during the entire exposure. This mode disables the on-chip gain switching comparator automatically after 93.75% of exposure time (only for longer than 100us). The % is only for chipv1.0, the duration can be set for chipv1.1.\n
|
||||
Default is 0 or this mode disabled (comparator enabled throughout). 1 enables mode. 0 disables mode.
|
||||
"""
|
||||
return self.getAutoCompDisable()
|
||||
return self.getAutoComparatorDisable()
|
||||
|
||||
@auto_comp_disable.setter
|
||||
def auto_comp_disable(self, value):
|
||||
ut.set_using_dict(self.setAutoCompDisable, value)
|
||||
ut.set_using_dict(self.setAutoComparatorDisable, value)
|
||||
|
||||
@property
|
||||
@element
|
||||
|
@ -970,13 +970,13 @@ void init_det(py::module &m) {
|
||||
(void (Detector::*)(sls::Positions)) &
|
||||
Detector::resetTemperatureEvent,
|
||||
py::arg() = Positions{})
|
||||
.def("getAutoCompDisable",
|
||||
.def("getAutoComparatorDisable",
|
||||
(Result<bool>(Detector::*)(sls::Positions) const) &
|
||||
Detector::getAutoCompDisable,
|
||||
Detector::getAutoComparatorDisable,
|
||||
py::arg() = Positions{})
|
||||
.def("setAutoCompDisable",
|
||||
.def("setAutoComparatorDisable",
|
||||
(void (Detector::*)(bool, sls::Positions)) &
|
||||
Detector::setAutoCompDisable,
|
||||
Detector::setAutoComparatorDisable,
|
||||
py::arg(), py::arg() = Positions{})
|
||||
.def("getComparatorDisableTime",
|
||||
(Result<sls::ns>(Detector::*)(sls::Positions) const) &
|
||||
|
Reference in New Issue
Block a user