Script execution
This commit is contained in:
@@ -162,9 +162,7 @@ class SpectrumReader(ReadonlyRegisterBase, ReadonlyRegisterArray):
|
||||
Scienta.stepSize.write(self.region['estep'])
|
||||
|
||||
try:
|
||||
print("set epass")
|
||||
Scienta.setPassEnergy(int(self.region['epass']))
|
||||
print("done epass")
|
||||
except KeyError:
|
||||
pass
|
||||
try:
|
||||
@@ -192,7 +190,8 @@ class SpectrumReader(ReadonlyRegisterBase, ReadonlyRegisterArray):
|
||||
append_dataset(self.step_time_dataset_name, self.region['tstep'])
|
||||
append_dataset(self.iterations_dataset_name, self.region['iter'])
|
||||
append_dataset(self.slit_dataset_name, self.region['slit'])
|
||||
|
||||
print("done spectrum.setup")
|
||||
|
||||
def read(self):
|
||||
print("spectrum.read")
|
||||
global current_region_index
|
||||
@@ -202,6 +201,7 @@ class SpectrumReader(ReadonlyRegisterBase, ReadonlyRegisterArray):
|
||||
trig_scienta()
|
||||
time.sleep(0.5)
|
||||
sp = Scienta.getSpectrum().read()
|
||||
print("done spectrum.read")
|
||||
return sp
|
||||
|
||||
def getSize(self):
|
||||
|
||||
Reference in New Issue
Block a user