mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-20 02:40:03 +02:00
* getVoltageList, getVoltage /set, getMeasuredVoltage, getVoltageNames /set, getVoltageIndex moved to 'Power' as its misleading * added cstdint and names slowadc, added division to mV * changed uV to mV in command line slow adc help. removed all python slowadcs (as it was already implemented as slowadc --------- Co-authored-by: Erik Frojdh <erik.frojdh@gmail.com>
27 lines
735 B
Python
27 lines
735 B
Python
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
from .detector import Detector, freeze
|
|
from .utils import element_if_equal
|
|
from .dacs import DetectorDacs, NamedDacs
|
|
from .powers import DetectorPowers, NamedPowers
|
|
import _slsdet
|
|
dacIndex = _slsdet.slsDetectorDefs.dacIndex
|
|
from .detector_property import DetectorProperty
|
|
|
|
|
|
from .utils import element
|
|
@freeze
|
|
class Ctb(Detector):
|
|
def __init__(self, id = 0):
|
|
super().__init__(id)
|
|
self._frozen = False
|
|
self._dacs = NamedDacs(self)
|
|
self._powers = NamedPowers(self)
|
|
|
|
@property
|
|
def dacs(self):
|
|
return self._dacs
|
|
|
|
@property
|
|
def powers(self):
|
|
return self._powers |