Script execution

This commit is contained in:
gac-x03da
2019-01-21 15:58:39 +01:00
parent 46ac480a75
commit b40624cf55
+11 -4
View File
@@ -106,10 +106,17 @@ try:
if xdata is None:
xdata = Scienta.spectrumX
p.getSeries(0).setData(xdata, ydata)
#eb_axis = p.chart.plot.getDomainAxis(1)
#eb1 = Eph.take(100) - Scienta.lowEnergy.take(100) - 4.5
#eb2 = Eph.take(100) - Scienta.highEnergy.take(100) - 4.5
#eb_axis.setRange(eb2, eb1)
eb_axis = p.chart.plot.getDomainAxis(1)
ephot = Eph.take(100)
elo = Scienta.lowEnergy.take(100)
ehi = Scienta.highEnergy.take(100)
workfunc = 4.5
if ephot is not float or ephot < 0.:
ephot = ehi
eb1 = ephot - elo - workfunc
eb2 = ephot - ehi - workfunc
eb_axis.setRange(eb2, eb1)
if save_scienta_image:
image_array = Scienta.dataMatrix.read()