diff --git a/script/XPSSpectrum.py b/script/XPSSpectrum.py index 0e54ff4a..0e64f920 100644 --- a/script/XPSSpectrum.py +++ b/script/XPSSpectrum.py @@ -25,8 +25,8 @@ try: for cur_range in range(len(ranges)): cur_iteration = 0 skip_iteration = False - Scienta.lowEnergy.put(ranges[cur_range].min) - Scienta.highEnergy.put(ranges[cur_range].max) + Scienta.lowEnergy.write(ranges[cur_range].min) + Scienta.highEnergy.write(ranges[cur_range].max) Scienta.update() vars = ranges[cur_range].vars @@ -67,7 +67,8 @@ try: set_attribute(path, "Pass Energy",pass_energy) set_attribute(path, "Iterations",cur_iteration+1) - AfterReadout() + create_diag_datasets(path) + append_diag_datasets(path) finally: