Script execution

This commit is contained in:
gac-x03da
2020-07-08 17:11:04 +02:00
parent 8c27aa1c06
commit 8797ee2a35

View File

@@ -0,0 +1,24 @@
import ch.psi.pshell.plot.RangeSelectionPlot.RangeSelection as RangeSelection
ranges = []
rs = RangeSelection(135.0, 157.5)
rs.setVars([0.25, 0.05, 3, 950.]) #Time, Size, Iteration, photon energy
ranges.append(rs)
rs = RangeSelection(468.0, 474.0)
rs.setVars([0.25, 0.05, 1, 950.]) #Time, Size, Iteration, photon energy
ranges.append(rs)
rs = RangeSelection(120.0, 140.0)
rs.setVars([0.25, 0.05, 1, 550.]) #Time, Size, Iteration, photon energy
ranges.append(rs)
# caution: do not insert multiple run commands in the same script!
# earlier data is overwritten!
run("XPSSpectrum", {"save_scienta_image":True,
"ranges": ranges,
"ENDSCAN": True,
"pass_energy":10})