mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-05-15 16:25:35 +02:00
Dev/doc/add ctb to doc (#1455)
Build on RHEL9 docker image / build (push) Successful in 4m33s
Build on RHEL8 docker image / build (push) Successful in 5m10s
Build and Deploy on local RHEL9 / build (push) Successful in 2m0s
Build and Deploy on local RHEL8 / build (push) Successful in 5m0s
Run Simulator Tests on local RHEL9 / build (push) Successful in 18m17s
Run Simulator Tests on local RHEL8 / build (push) Successful in 21m50s
Build on RHEL9 docker image / build (push) Successful in 4m33s
Build on RHEL8 docker image / build (push) Successful in 5m10s
Build and Deploy on local RHEL9 / build (push) Successful in 2m0s
Build and Deploy on local RHEL8 / build (push) Successful in 5m0s
Run Simulator Tests on local RHEL9 / build (push) Successful in 18m17s
Run Simulator Tests on local RHEL8 / build (push) Successful in 21m50s
* added numpy for patterngenerator * treat warnings as errors * fix warnings during docu build * added power and ctb to documentation
This commit is contained in:
@@ -27,10 +27,34 @@ class Ctb(Detector):
|
||||
|
||||
@property
|
||||
def powers(self):
|
||||
"""
|
||||
[Chiptestboard][Xilinx CTB] Power names and values of all power supplies.
|
||||
|
||||
Example
|
||||
-----------
|
||||
>>> # print all powers with DAC and info if enabled
|
||||
>>> d.powers
|
||||
>>> # set DAC or enables for power supply VA
|
||||
>>> d.powers.VA = 1200
|
||||
>>> # enable or disable power subbly VA
|
||||
>>> d.powers.VA.enable()
|
||||
>>> d.powers.VA.disable()
|
||||
>>> # get dac value of power supply VA
|
||||
>>> d.powers.VA.dac
|
||||
>>> # check if power supply VA is enabled
|
||||
>>> d.powers.VA.enabled
|
||||
>>> # print both enabled and dac value of power supply VA
|
||||
>>> d.powers.VA
|
||||
"""
|
||||
return self._powers
|
||||
|
||||
@property
|
||||
def powerlist(self):
|
||||
"""
|
||||
List of power supply names on the Chip Test Board.
|
||||
|
||||
:setter: List of custom power supply names to set.
|
||||
"""
|
||||
return self.getPowerNames()
|
||||
|
||||
@powerlist.setter
|
||||
|
||||
+13
-10
@@ -833,10 +833,10 @@ class Detector(CppDetectorApi):
|
||||
Note
|
||||
----
|
||||
Sets up the following for every module:\n
|
||||
\t\t[Eiger] txdelay_left to (2 * mod_index * n_delay), \n
|
||||
\t\t[Eiger] txdelay_right to ((2 * mod_index + 1) * n_delay) and \n
|
||||
\t\t[Eiger] txdelay_frame to (2 *num_modules * n_delay) \n
|
||||
\t\t[Jungfrau][Moench][Mythen3] txdelay_frame to (num_modules * n_delay)\n\n
|
||||
\t\t[Eiger] txdelay_left to (2 \* mod_index \* n_delay), \n
|
||||
\t\t[Eiger] txdelay_right to ((2 \* mod_index + 1) \* n_delay) and \n
|
||||
\t\t[Eiger] txdelay_frame to (2 \* num_modules \* n_delay) \n
|
||||
\t\t[Jungfrau][Moench][Mythen3] txdelay_frame to (num_modules \* n_delay)\n\n
|
||||
Please refer txdelay_left, txdelay_right and txdelay_frame for details.
|
||||
"""
|
||||
return self.getTransmissionDelay()
|
||||
@@ -1313,10 +1313,10 @@ class Detector(CppDetectorApi):
|
||||
@property
|
||||
def zmqhwm(self):
|
||||
"""
|
||||
Client's zmq receive high water mark. Default is the zmq library's default (1000), can also be set here using -1.
|
||||
This is a high number and can be set to 2 for gui purposes.
|
||||
Client's zmq receive high water mark. Default is the zmq library's default (1000), can also be set here using -1.
|
||||
This is a high number and can be set to 2 for gui purposes.
|
||||
One must also set the receiver's send high water mark to similar value. Final effect is sum of them.
|
||||
Setting it via command line is useful only before zmq enabled (before opening gui).
|
||||
Setting it via command line is useful only before zmq enabled (before opening gui).
|
||||
"""
|
||||
return self.getClientZmqHwm()
|
||||
|
||||
@@ -2312,13 +2312,16 @@ class Detector(CppDetectorApi):
|
||||
@property
|
||||
@element
|
||||
def threshold(self):
|
||||
"""[Eiger][Mythen3] Threshold in eV
|
||||
"""
|
||||
[Eiger][Mythen3] Threshold in eV
|
||||
|
||||
Note
|
||||
----
|
||||
To change settings as well or set threshold without trimbits, use setThresholdEnergy.
|
||||
To change settings as well or set threshold without trimbits,
|
||||
use setThresholdEnergy.
|
||||
|
||||
:setter: It loads trim files from settingspath.\n [Mythen3] An energy of -1 will pick up values from detector.
|
||||
:setter: It loads trim files from settingspath.\n
|
||||
[Mythen3] An energy of -1 will pick up values from detector.
|
||||
"""
|
||||
|
||||
if self.type == detectorType.MYTHEN3:
|
||||
|
||||
Reference in New Issue
Block a user