Closedown
This commit is contained in:
@@ -14,7 +14,7 @@ if Scienta.acquisitionMode != Scienta.AcquisitionMode.Swept:
|
||||
ret=[]
|
||||
|
||||
|
||||
set_context(open = True)
|
||||
set_exec_pars(open = True)
|
||||
|
||||
#Global arguments
|
||||
Scienta.passEnergy = pass_energy
|
||||
@@ -28,7 +28,7 @@ spectrum_series = plots[0].getSeries(0)
|
||||
def plot_cur_spectrum():
|
||||
global spectrum_series
|
||||
try:
|
||||
while context.state.running:
|
||||
while get_context().state.running:
|
||||
y = Scienta.spectrum.take(100)
|
||||
x = Scienta.spectrumX
|
||||
spectrum_series.setData(x, y)
|
||||
|
||||
Reference in New Issue
Block a user