diff --git a/script/users/Granas/XPSSpectrum.py b/script/users/Granas/XPSSpectrum.py index d3c31a2c..f5861fd4 100644 --- a/script/users/Granas/XPSSpectrum.py +++ b/script/users/Granas/XPSSpectrum.py @@ -35,9 +35,16 @@ skip_iteration = False ENDSCAN = True """ +cont ="" +command_path_tmp = "/sls/X03DA/data/gac-x03da/Data1/2018/10/Granas/XPSstuff/commands/set_measure.txt" +if os.path.exists(command_path_tmp): + cont = open(command_path_tmp).read() + ranges = [] -select_edge_tmp = "C1s " +select_edge_tmp = cont + + pass_energy = 20 #O1s #save_scienta_image = True @@ -50,7 +57,8 @@ if "O1s" in select_edge_tmp: ranges.append((650.0, 645., 647.0, 0.1, 0.2, 10)) # O1s elif "C1s" in select_edge_tmp: ranges.append((390.0, 384.4, 387.0, 0.1, 0.2, 20)) # C1s - +else: + print "no command fount" from ch.psi.pshell.data.LayoutDefault import ATTR_WRITABLE_DIMENSION as ATTR_WRITABLE_DIMENSION cur_range = 0