mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-18 17:24:04 +01:00
* 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 * binary in * hdr mode works * binaries in * 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 * jf binary in * enable hdr only after setting activation time * jf binary in * fix enable by reading reg again * swapped timeout and activation time, select bits reversed also for 1.2 chipversion * inversion select removed in firmware * jungfrau binary in * minor: err message * fix * fixed autocomplete for synchrortron * should now ++17 as well * added hdr to python * minor * updated the help for hdr * updated the help for python api and the pybindings minor refactor * minor typo in pybind * fixed pybind error
50 lines
1.4 KiB
Python
Executable File
50 lines
1.4 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 DetectorDacs, Dac
|
|
from .powers import DetectorPowers, 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
|
|
scanParameters = _slsdet.scanParameters
|
|
currentSrcParameters = _slsdet.currentSrcParameters
|
|
hdrParameters = _slsdet.hdrParameters
|
|
DurationWrapper = _slsdet.DurationWrapper
|
|
pedestalParameters = _slsdet.pedestalParameters
|
|
|
|
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()
|
|
|
|
|
|
|
|
|