diff --git a/script/XPSSpectrum.py b/script/XPSSpectrum.py index ee86af7a..02555302 100644 --- a/script/XPSSpectrum.py +++ b/script/XPSSpectrum.py @@ -59,7 +59,7 @@ try: data1d = [1,2,3,4,5] path="scan" + str(cur_range+1) + "/" - save_dataset(path + "spectrum", ydata) + save_dataset(path + "ScientaSpectrum", ydata) save_dataset(path + "channels", xdata) set_attribute(path + "channels", ATTR_WRITABLE_DIMENSION, 1) set_attribute(path, "Range Low", ranges[cur_range].min) @@ -68,6 +68,8 @@ try: set_attribute(path, "Step Size",vars[1]) set_attribute(path, "Pass Energy",pass_energy) set_attribute(path, "Iterations",cur_iteration+1) + set_attribute(path, "Readables", ["ScientaSpectrum",]) + set_attribute(path, "Writables", ["channels",]) create_diag_datasets(path) append_diag_datasets(path)