devices: ring current (pv to bec) and ernergy (hard code)
This commit is contained in:
1 parent
4af96a194d
commit
a18735824c
1 file changed
+3
-3
@@ -37,8 +37,6 @@ class BeamlineDevices:
|
||||
logger.debug("initialising BEC worker done")
|
||||
self.__smargon = smargon.Smargon(beamline)
|
||||
|
||||
self.__ring_current_pv = PV(f"ARS07-DPCT-0100:CURR")
|
||||
|
||||
self.__dtz = MyMotor(f"{BEAMLINE}-ES-DET:TRZ")
|
||||
self.__dty = MyMotor(f"{BEAMLINE}-ES-DET:TRY")
|
||||
|
||||
@@ -243,11 +241,13 @@ class BeamlineDevices:
|
||||
# Optics
|
||||
@property
|
||||
def energy_kev(self) -> float:
|
||||
if self._beamline == MXBeamline.X06DA:
|
||||
return 13.0
|
||||
return 12.4
|
||||
|
||||
@property
|
||||
def ring_current(self) -> float:
|
||||
return max(0.0, 0.0)
|
||||
return max(0.0, self.bec_worker.ring_current)
|
||||
|
||||
@property
|
||||
def flux(self) -> float:
|
||||
|
||||
Reference in new issue
Block a user