ENERGIES = [800,810] set_preference(Preference.ENABLED_PLOTS, ['field', 'tey_norm', 'trans_norm']) set_preference(Preference.PLOT_TYPES, {'tey_norm':1, 'trans_norm':1}) scan = ManualScan(['field', 'Energy'], ['TEY', 'I0', 'trans', 'polarization', 'polAngle', 'temperature', 'RingCurrent', \ "field_var", 'tey_norm','trans_norm'], [0.0, ENERGIES[0]], [0.0, ENERGIES[-1]], [0, len(ENERGIES)-1]) scan.start() index = 0 while(True): for en in ENERGIES: scan.append ([index, en], [index, en], [5, 6, 7, 8, 9, 10, 11, 12, 1.0/(index+1)+en, 1.0/(index+en)]) if index>50: break index = index+1 scan.end() log_scan_filename()