added energy_offset as argument; shortened wait time
This commit is contained in:
5
adhoc.py
5
adhoc.py
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user