mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-12-03 11:57:46 +01:00
Build on RHEL8 docker image / build (push) Successful in 5m6s
Build on RHEL9 docker image / build (push) Successful in 5m5s
Build and Deploy on local RHEL9 / build (push) Successful in 2m3s
Build and Deploy on local RHEL8 / build (push) Successful in 5m10s
Run Simulator Tests on local RHEL9 / build (push) Successful in 20m7s
Run Simulator Tests on local RHEL8 / build (push) Successful in 23m30s
* replaced png images with svg * fixed docs typos * fix filename * fix image references, filename in index * fixed drawio svg export, upd drawio plots --------- Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch> Co-authored-by: Erik Fröjdh <erik.frojdh@gmail.com>
1.6 KiB
1.6 KiB
Enums
These enums are defined in slsDetectorDefs in the C++ package and exposed to Python through pybind11.
# Most settings are represented as enums that can be
# explicitly imported
from slsdet import Detector, fileFormat
d = Detector()
d.fformat = fileFormat.BINARY
# Although not recommended for convenience all enums
# and some other things can be impored using *
from slsdet import *
d.speed = speedLevel.FULL_SPEED
# To list the available enums, use dir()
import slsdet.enums
for enum in dir(slsdet.enums):
# filter out special members
if not enum.startswith('_'):
print(enum)
runStatus
detectorType
frameDiscardPolicy
fileFormat
dimension
externalSignalFlag
timingMode
dacIndex
detectorSettings
clockIndex
speedLevel
readoutMode
burstMode
timingSourceType
M3_GainCaps
portPosition
streamingInterface
vetoAlgorithm
gainMode