From c5d51514e1c3465b5ea323952092d1e908b652a9 Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Mon, 25 Nov 2019 19:47:07 +0100 Subject: [PATCH] Script execution --- script/tmp.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/script/tmp.py b/script/tmp.py index ce5d21a7..665cc46d 100644 --- a/script/tmp.py +++ b/script/tmp.py @@ -1 +1,35 @@ + +time_multipler = 1 +repetitions = 1 + +binding_center_Au_Ef=0.; +window_Au_Ef=4.; +time_Au_Ef = 15.*time_multipler + +binding_center_Au_4f=86.; +window_Au_4f=13.; +time_Au_4f = 0.1*time_multipler + +binding_center_As_3d=43.; +window_As_3d=10.; +time_As_3d=1.*time_multipler + +binding_center_In_4d=19.5; +window_In_4d=10.; +time_In_4d=0.2*time_multipler + +time_overview=1*time_multipler +def do_As_3d(): + set_exec_pars(name="As-3d-"+str(e)+"eV") + move_to_position(SAMPLE_POSITION) + center_As_3d = photon_energy - 4.5 - binding_center_As_3d + rs = RangeSelection(center_As_3d-window_As_3d/2.,center_As_3d+window_As_3d/2.) + + rs.setVars([time_As_3d, 0.05, 1, photon_energy]) #Time, Size, Iteration, photon energy + + run("XPSSpectrum", {"save_scienta_image":True, + "ranges":[rs, ], + "ENDSCAN":False, + "pass_energy":pass_energy_dict[e]}) + do_As_3d()