import ch.psi.pshell.plot.RangeSelectionPlot.RangeSelection as RangeSelection # caution: do not insert multiple runs in the same script! # earlier runs are overwritten! rs = RangeSelection(408.0,414.0) rs.setVars([0.5, 0.2, 1, 700.]) #Time, Size, Iteration, photon energy run("XPSSpectrum", {"save_scienta_image":True, "ranges":[rs, ], "ENDSCAN":False, "pass_energy":50})