Skip to content
Snippets Groups Projects
Commit d7fe3d9d authored by jmcchesn's avatar jmcchesn
Browse files

debug EA

parent b65571f7
No related branches found
No related tags found
No related merge requests found
......@@ -378,9 +378,10 @@ def scanEA(EAlist,**kwargs):
KElist = np.array(EAlist[1:-3])
elif EAlist[0]=="BE":
KElist = energy_get() - np.array(EAlist[1:-3])
if KElist[0] > KElist[1]:
print_warning_message('EA scans from low to high in kinetic energy')
return
if len(KElist)>2:
if KElist[0] > KElist[1]:
print_warning_message('EA scans from low to high in kinetic energy')
return
KEmin,KEmax = AllowedEnergyRange(EAlist[-3],'Angular')
if KElist[0] < KEmin:
print_warning_message('kinetic energy belowed minimum allowed energy')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment