Script execution
This commit is contained in:
24
script/users/Granas/automise.py
Normal file
24
script/users/Granas/automise.py
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
measurement = ""
|
||||
|
||||
path = "/sls/X03DA/data/gac-x03da/Data1/2018/10/Granas/XPSstuff/commands/set_measure.txt"
|
||||
|
||||
for i in range(60):
|
||||
time.sleep(4)
|
||||
if os.path.exits(path):
|
||||
cont = open(path).read()
|
||||
if "manipulator spectrum O1s" in cont:
|
||||
select_edge_tmp = "O1s "
|
||||
execfile("/sls/X03DA/data/gac-x03da/pshell/home/script/users/Granas/ManipulatorScan.py")
|
||||
elif "fermi edge O1s" in cont:
|
||||
select_edge_tmp = "O1s "
|
||||
execfile("/sls/X03DA/data/gac-x03da/pshell/home/script/users/Granas/XPSSpectrum.py")
|
||||
elif "fermi edge C1s" in cont:
|
||||
select_edge_tmp = "O1s "
|
||||
execfile("/sls/X03DA/data/gac-x03da/pshell/home/script/users/Granas/XPSSpectrum.py")
|
||||
elif "manipulator spectrum C1s" in cont:
|
||||
select_edge_tmp = "C1s "
|
||||
execfile("/sls/X03DA/data/gac-x03da/pshell/home/script/users/Granas/ManipulatorScan.py")
|
||||
if "exit_loop":
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user