mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 15:20:02 +02:00
wip, doc
This commit is contained in:
parent
2fc0768ad1
commit
804ad0997c
@ -71,6 +71,7 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def nmod(self):
|
def nmod(self):
|
||||||
|
"""Number of modules in shared memory."""
|
||||||
return self.size()
|
return self.size()
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
@ -318,6 +319,12 @@ class Detector(CppDetectorApi):
|
|||||||
@property
|
@property
|
||||||
@element
|
@element
|
||||||
def nframes(self):
|
def nframes(self):
|
||||||
|
"""
|
||||||
|
[Jungfrau][Mythen3][Gotthard2][Moench][CTB] Number of frames from start run control.
|
||||||
|
Note
|
||||||
|
-----
|
||||||
|
[Gotthard2] only in continuous mode.
|
||||||
|
"""
|
||||||
return self.getNumberOfFramesFromStart()
|
return self.getNumberOfFramesFromStart()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -1400,6 +1407,7 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def packageversion(self):
|
def packageversion(self):
|
||||||
|
"""Package version (git branch)."""
|
||||||
return self.getPackageVersion()
|
return self.getPackageVersion()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -1644,6 +1652,9 @@ class Detector(CppDetectorApi):
|
|||||||
def parallel(self):
|
def parallel(self):
|
||||||
"""
|
"""
|
||||||
[Eiger][Mythen3] Enable or disable the parallel readout mode of detector.
|
[Eiger][Mythen3] Enable or disable the parallel readout mode of detector.
|
||||||
|
Note
|
||||||
|
----
|
||||||
|
[Mythen3] If exposure time is too short, acquisition will return with an ERROR and take fewer frames than expected.
|
||||||
"""
|
"""
|
||||||
return self.getParallelMode()
|
return self.getParallelMode()
|
||||||
|
|
||||||
@ -1757,6 +1768,11 @@ class Detector(CppDetectorApi):
|
|||||||
@property
|
@property
|
||||||
@element
|
@element
|
||||||
def now(self):
|
def now(self):
|
||||||
|
"""[Jungfrau][Mythen3][Gotthard2][Moench][CTB] Time from detector start up.
|
||||||
|
Note
|
||||||
|
-----
|
||||||
|
[Gotthard2] not in burst and auto mode.
|
||||||
|
"""
|
||||||
return self.getActualTime()
|
return self.getActualTime()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -1915,6 +1931,20 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def maxclkphaseshift(self):
|
def maxclkphaseshift(self):
|
||||||
|
"""
|
||||||
|
[Gotthard2][Mythen3] Absolute maximum Phase shift of clocks.
|
||||||
|
Note
|
||||||
|
----
|
||||||
|
:setter: Not Implemented
|
||||||
|
Example
|
||||||
|
-------
|
||||||
|
>>> d.maxclkphaseshift
|
||||||
|
0: 80
|
||||||
|
1: 80
|
||||||
|
2: 160
|
||||||
|
3: 80
|
||||||
|
4: 80
|
||||||
|
"""
|
||||||
return MaxPhaseProxy(self)
|
return MaxPhaseProxy(self)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -2698,7 +2728,7 @@ class Detector(CppDetectorApi):
|
|||||||
@property
|
@property
|
||||||
def clkdiv(self):
|
def clkdiv(self):
|
||||||
"""
|
"""
|
||||||
[Gotthard2][Mythen3] Clock Divider of 5 clocks. Must be greater than 1.
|
[Gotthard2][Mythen3] Clock Divider of all clocks. Must be greater than 1.
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
>>> d.clkdiv[0] = 20
|
>>> d.clkdiv[0] = 20
|
||||||
|
@ -84,7 +84,7 @@ class Detector {
|
|||||||
* CHIPTESTBOARD */
|
* CHIPTESTBOARD */
|
||||||
Result<defs::detectorType> getDetectorType(Positions pos = {}) const;
|
Result<defs::detectorType> getDetectorType(Positions pos = {}) const;
|
||||||
|
|
||||||
/** Gets the total number of detectors */
|
/** Gets the total number of modules in shared memory */
|
||||||
int size() const;
|
int size() const;
|
||||||
|
|
||||||
bool empty() const;
|
bool empty() const;
|
||||||
|
@ -2344,9 +2344,9 @@ class CmdProxy {
|
|||||||
"[n]\n\tPort number of the stop server on detector for detector-client "
|
"[n]\n\tPort number of the stop server on detector for detector-client "
|
||||||
"tcp interface. Default is 1953. Normally unchanged.");
|
"tcp interface. Default is 1953. Normally unchanged.");
|
||||||
|
|
||||||
INTEGER_COMMAND_VEC_ID(lock, getDetectorLock, setDetectorLock,
|
INTEGER_COMMAND_VEC_ID(
|
||||||
StringTo<int>,
|
lock, getDetectorLock, setDetectorLock, StringTo<int>,
|
||||||
"[0, 1]\n\tLock detector to one IP, 1: locks");
|
"[0, 1]\n\tLock detector to one IP, 1: locks. Default is unlocked");
|
||||||
|
|
||||||
GET_COMMAND(
|
GET_COMMAND(
|
||||||
lastclient, getLastClientIP,
|
lastclient, getLastClientIP,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user