diff --git a/script/tmp.py b/script/tmp.py index 66c85dd9..0c187422 100644 --- a/script/tmp.py +++ b/script/tmp.py @@ -1,4 +1,15 @@ - for i in range(0,repetitions/2.): - ##################################################### - #As - do_In_4d() \ No newline at end of file +def do_overview_As3d_In4d(): + set_exec_pars(name="Overview-As3d-In4d-"+str(e)+"eV") + move_to_position(SAMPLE_POSITION) + center_As_3d = photon_energy - 4.5 - binding_center_As_3d + center_As_4d = photon_energy - 4.5 - binding_center_In_4d + rs = RangeSelection(center_As_3d-window_As_3d/2.,center_In_4d+window_In_4d/2.) + + rs.setVars([time_overview, 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]}) + + set_exec_pars(open=False) \ No newline at end of file