Script execution

This commit is contained in:
gac-x03da
2019-03-01 10:17:22 +01:00
parent 9a205bb98f
commit 637b3dbb72

View File

@@ -108,14 +108,14 @@ class SpectrumReader(ReadonlyRegisterBase, ReadonlyRegisterArray):
if self.region_index == 0:
print "scan {0}".format(self.scan_index)
ephot = Eph.read()
try:
if self.region['cis']:
edelta = ephot - self.ephot_start
else:
edelta = 0.0
except AttributeError:
self.ephot_start = ephot
#ephot = Eph.read()
#try:
# if self.region['cis']:
# edelta = ephot - self.ephot_start
# else:
# edelta = 0.0
#except AttributeError:
# self.ephot_start = ephot
edelta = 0.0
elo = self.region['elo'] + edelta