Files
slsDetectorPackage/python/slsdet/__init__.py
maliakal_d deb58dcb34
Build on RHEL9 docker image / build (push) Successful in 5m4s
Build on RHEL8 docker image / build (push) Successful in 5m28s
Build and Deploy on local RHEL8 / build (push) Successful in 5m15s
Build and Deploy on local RHEL9 / build (push) Successful in 2m0s
Run Simulator Tests on local RHEL9 / build (push) Successful in 20m43s
Run Simulator Tests on local RHEL8 / build (push) Successful in 24m50s
dev//jf chip1 2 part3 (#1655)
* cli and test side wip

* server side upto imp

* almost done, need to pick up from last pr to get chipindex

* update activatetime also for exptime

* use chipindex and fix the cli  put

* minor

* tests pass

* hdr mode works

* cannot cap activation time with 8 bit storage

* update activation time when changin exptime  only if hdr enabled

* update activation time no matter if hdr enabled or not (when changing exptime), its anyway not enabled

* enable hdr only after setting activation time

* fix enable by reading reg again

* swapped timeout and activation time, select bits reversed also for 1.2 chipversion

* inversion select removed in firmware

* minor: err message

* fix

* fixed autocomplete for synchrortron

* added hdr to python

* minor

* auto cli changes

* binaries in and conflict fix

* updated the help for hdr

* updated the help for python api and the pybindings minor refactor

* binary in

* minor typo in pybind

* fixed pybind error
2026-11-05 16:17:21 +01:00

56 lines
1.5 KiB
Python
Executable File

# SPDX-License-Identifier: LGPL-3.0-or-other
# Copyright (C) 2021 Contributors to the SLS Detector Package
# from .detector import Detector, DetectorError, free_shared_memory
from .eiger import Eiger
from .ctb import Ctb
from .dacs import NamedDacs, DetectorDacs, Dac
from .powers import NamedPowers, Power
from .detector import Detector
from .jungfrau import Jungfrau
from .mythen3 import Mythen3
from .gotthard2 import Gotthard2
from .moench import Moench
from .pattern import Pattern, patternParameters
from .gaincaps import Mythen3GainCapsWrapper
from .PatternGenerator import PatternGenerator
from . import _slsdet
from ._slsdet import freeSharedMemory, getUserDetails
xy = _slsdet.xy
defs = _slsdet.slsDetectorDefs
#Make enums and #defines available at top level
from .enums import *
from .defines import *
IpAddr = _slsdet.IpAddr
MacAddr = _slsdet.MacAddr
RegisterAddress = _slsdet.RegisterAddress
BitAddress = _slsdet.BitAddress
RegisterValue = _slsdet.RegisterValue
scanParameters = _slsdet.scanParameters
currentSrcParameters = _slsdet.currentSrcParameters
hdrParameters = _slsdet.hdrParameters
DurationWrapper = _slsdet.DurationWrapper
pedestalParameters = _slsdet.pedestalParameters
Hz = _slsdet.Hz
kHz = _slsdet.kHz
MHz = _slsdet.MHz
import os
def read_version():
try:
version_file = os.path.join(os.path.dirname(__file__), 'VERSION')
with open(version_file, "r") as f:
return f.read().strip()
except:
raise RuntimeError("VERSION file not found in slsdet package from init.py")
__version__ = read_version()