mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 23:10:02 +02:00
WIP doc
This commit is contained in:
parent
cf6a48d7a9
commit
396685e6a9
@ -422,7 +422,7 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
Example
|
Example
|
||||||
--------
|
--------
|
||||||
d.fformat = slsDetectorDefs.fileFormat.BINARY
|
d.fformat = slsdet.fileFormat.BINARY
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return element_if_equal(self.getFileFormat())
|
return element_if_equal(self.getFileFormat())
|
||||||
@ -911,6 +911,7 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def gappixels(self):
|
def gappixels(self):
|
||||||
|
"""[Eiger][Jungfrau] Include Gap pixels in client data call back in Detecor api. Will not be in detector streaming, receiver file or streaming. Default is disabled. """
|
||||||
return element_if_equal(self.getRxAddGapPixels())
|
return element_if_equal(self.getRxAddGapPixels())
|
||||||
|
|
||||||
@gappixels.setter
|
@gappixels.setter
|
||||||
@ -1034,6 +1035,27 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def gatedelay(self):
|
def gatedelay(self):
|
||||||
|
"""
|
||||||
|
[Mythen3] Gate Delay of all gate signals in auto and trigger mode (internal gating), accepts either a value in seconds or datetime.timedelta
|
||||||
|
|
||||||
|
Note
|
||||||
|
-----
|
||||||
|
To specify gateIndex, use getGateDelay or setGateDelay.
|
||||||
|
|
||||||
|
:getter: always returns in seconds. To get in datetime.delta, use getGateDelayForAllGates or getGateDelay(gateIndex)
|
||||||
|
|
||||||
|
Examples
|
||||||
|
-----------
|
||||||
|
>>> d.gatedelay = 1.05
|
||||||
|
>>> d.gatedelay = datetime.timedelta(minutes = 3, seconds = 1.23)
|
||||||
|
>>> d.gatedelay
|
||||||
|
181.23
|
||||||
|
>>> d.setGateDelay(1, datetime.timedelta(seconds = 2))
|
||||||
|
>>> d.gatedelay
|
||||||
|
>>> [1.0, 2.0, 1.0]
|
||||||
|
>>> d.getExptimeForAllGates()
|
||||||
|
>>> [[datetime.timedelta(seconds=181, microseconds=230000), datetime.timedelta(seconds=181, microseconds=230000), datetime.timedelta(seconds=181, microseconds=230000)]]
|
||||||
|
"""
|
||||||
return reduce_time(self.getGateDelayForAllGates())
|
return reduce_time(self.getGateDelayForAllGates())
|
||||||
|
|
||||||
@gatedelay.setter
|
@gatedelay.setter
|
||||||
|
@ -128,8 +128,8 @@ class Detector {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* [Eiger][Jungfrau]
|
* [Eiger][Jungfrau]
|
||||||
* Only in client data call back
|
* Include gap pixels in client data call back. Will not be in detector
|
||||||
* Fills in gap pixels in data
|
* streaming, receiver file or streaming. Default is disabled.
|
||||||
*/
|
*/
|
||||||
void setGapPixelsinCallback(const bool enable);
|
void setGapPixelsinCallback(const bool enable);
|
||||||
|
|
||||||
@ -1129,7 +1129,7 @@ class Detector {
|
|||||||
* (internal gating). Gate index: 0-2, -1 for all */
|
* (internal gating). Gate index: 0-2, -1 for all */
|
||||||
void setGateDelay(int gateIndex, ns t, Positions pos = {});
|
void setGateDelay(int gateIndex, ns t, Positions pos = {});
|
||||||
|
|
||||||
/** [Mythen3] gate delay for each gate signal in auto or trigger timing mode
|
/** [Mythen3] gate delay for all gates in auto or trigger timing mode
|
||||||
* (internal gating). Gate index: 0-2, -1 for all */
|
* (internal gating). Gate index: 0-2, -1 for all */
|
||||||
Result<std::array<ns, 3>> getGateDelayForAllGates(Positions pos = {}) const;
|
Result<std::array<ns, 3>> getGateDelayForAllGates(Positions pos = {}) const;
|
||||||
|
|
||||||
|
@ -336,8 +336,9 @@ std::string CmdProxy::GapPixels(int action) {
|
|||||||
std::ostringstream os;
|
std::ostringstream os;
|
||||||
os << cmd << ' ';
|
os << cmd << ' ';
|
||||||
if (action == defs::HELP_ACTION) {
|
if (action == defs::HELP_ACTION) {
|
||||||
os << "[0, 1]\n\t[Eiger][Jungfrau] Include Gap pixels only in data "
|
os << "[0, 1]\n\t[Eiger][Jungfrau] Include Gap pixels in client data "
|
||||||
"call back."
|
"call back in Detecor api. Will not be in detector streaming, "
|
||||||
|
"receiver file or streaming. Default is 0. "
|
||||||
<< '\n';
|
<< '\n';
|
||||||
} else if (action == defs::GET_ACTION) {
|
} else if (action == defs::GET_ACTION) {
|
||||||
if (det_id != -1) {
|
if (det_id != -1) {
|
||||||
@ -1842,8 +1843,7 @@ std::string CmdProxy::GateDelay(int action) {
|
|||||||
if (cmd == "gatedelay") {
|
if (cmd == "gatedelay") {
|
||||||
os << "[duration] [(optional unit) "
|
os << "[duration] [(optional unit) "
|
||||||
"ns|us|ms|s]\n\t[Mythen3] Gate Delay of all gate signals in "
|
"ns|us|ms|s]\n\t[Mythen3] Gate Delay of all gate signals in "
|
||||||
"auto and "
|
"auto and trigger mode (internal gating)."
|
||||||
"trigger mode (internal gating)."
|
|
||||||
<< '\n';
|
<< '\n';
|
||||||
} else if (cmd == "gatedelay1") {
|
} else if (cmd == "gatedelay1") {
|
||||||
os << "[n_value]\n\t[Mythen3] Gate Delay of gate signal 1 in "
|
os << "[n_value]\n\t[Mythen3] Gate Delay of gate signal 1 in "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user