first try

This commit is contained in:
gac-maloja
2021-11-16 15:32:57 +01:00
parent 82e8da8e80
commit a116243573
4 changed files with 427 additions and 0 deletions

24
SetAthosUndEnergy.py Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env python
import argparse
parser = argparse.ArgumentParser(description="Set Athos energy via undulators")
parser.add_argument("energy", type=float, help="Target energy in eV")
clargs = parser.parse_args()
from time import sleep
from devices.undulator import Undulators
und = Undulators(adjust_chic=False)
sleep(1) # give PVs some time to connect
print("before:", und)
print("target:", clargs.energy, "eV")
print("actual change is commented out!")
#und.set(clargs.energy)
print("after: ", und)