Files
x07ma/script/test/TestScanFilename.py
gac-x07ma a72079f33c
2020-03-17 10:13:45 +01:00

24 lines
679 B
Python

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()