added energy_offset as argument; shortened wait time

This commit is contained in:
2022-07-06 18:28:08 +02:00
parent 9e60cbefae
commit be0a678675
2 changed files with 10 additions and 8 deletions

View File

@ -14,6 +14,7 @@ from slic.devices.xoptics.dcm import CoupledDoubleCrystalMonoEnergyWithTimeCorre
from undulator import Undulators
ENERGY_OFFSET = 13 # set the mono-undulators energy offset here!
laser_pitch = SmarActAxis("SARES11-XICM125:ROX1")
@ -79,7 +80,7 @@ class UndulatorCoupledDoubleCrystalMonoEnergy(Adjustable):
def __init__(self, ID, name=None, process_time=1):
# self.und = UndulatorEnergy(process_time=process_time)
self.und = Undulators()
self.und = Undulators(energy_offset=ENERGY_OFFSET)
pvname_setvalue = "SAROP11-ARAMIS:ENERGY_SP"
pvname_readback = "SAROP11-ARAMIS:ENERGY"
@ -149,7 +150,7 @@ class UndulatorCoupledDoubleCrystalMonoEnergyWithTimeCorrection(Adjustable):
def __init__(self, ID="UCDCMEWTC", name="Alvra DCM Undulator-coupled energy with time correction", limit_low=None, limit_high=None, process_time=1):
# self.und = UndulatorEnergy(process_time=process_time)
self.und = Undulators()
self.und = Undulators(energy_offset=ENERGY_OFFSET)
self.wait_time = 0.1