mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
Cmddacs (#189)
Moved dacs to it's own command for command line. Co-authored-by: Erik Frojdh <erik.frojdh@gmail.com>
This commit is contained in:
@ -342,7 +342,7 @@ class Detector(CppDetectorApi):
|
||||
def framesl(self):
|
||||
"""
|
||||
[Gotthard][Jungfrau][Mythen3][Gotthard2][CTB][Moench] Number of frames left in acquisition.\n
|
||||
[Gotthard2] only in continuous mode.
|
||||
[Gotthard2] only in continuous auto mode.
|
||||
:setter: Not Implemented
|
||||
"""
|
||||
return self.getNumberOfFramesLeft()
|
||||
@ -1492,7 +1492,7 @@ class Detector(CppDetectorApi):
|
||||
[Gotthard][Jungfrau][Mythen3][Gotthard2][CTB][Moench] Number of triggers left in acquisition.\n
|
||||
Note
|
||||
----
|
||||
[Gotthard2] only in continuous mode.
|
||||
Only when external trigger used.
|
||||
:setter: Not Implemented
|
||||
"""
|
||||
return self.getNumberOfTriggersLeft()
|
||||
@ -2119,6 +2119,18 @@ class Detector(CppDetectorApi):
|
||||
def bursts(self, value):
|
||||
self.setNumberOfBursts(value)
|
||||
|
||||
@property
|
||||
@element
|
||||
def burstsl(self):
|
||||
"""
|
||||
[Gotthard2] Number of bursts left in acquisition.\n
|
||||
Note
|
||||
----
|
||||
Only in burst auto mode.
|
||||
:setter: Not Implemented
|
||||
"""
|
||||
return self.getNumberOfBurstsLeft()
|
||||
|
||||
@property
|
||||
@element
|
||||
def filter(self):
|
||||
|
@ -965,6 +965,10 @@ void init_det(py::module &m) {
|
||||
(void (Detector::*)(sls::ns, sls::Positions)) &
|
||||
Detector::setBurstPeriod,
|
||||
py::arg(), py::arg() = Positions{})
|
||||
.def("getNumberOfBurstsLeft",
|
||||
(Result<int64_t>(Detector::*)(sls::Positions) const) &
|
||||
Detector::getNumberOfBurstsLeft,
|
||||
py::arg() = Positions{})
|
||||
.def("getInjectChannel",
|
||||
(Result<std::array<int, 2>>(Detector::*)(sls::Positions)) &
|
||||
Detector::getInjectChannel,
|
||||
|
Reference in New Issue
Block a user