Python3 issues
Hi, I was trying to run a scan on BEBOP @ ANL and got the following message:
[roussel@beboplogin1 DEEX]$ runOPAL.py --test PHASE=0.0:1.0:0.1
REMOVE existing directory DEEX_PHASE=0.0:1.0:0.1
{'PHASE': [0.0, 1.0, 0.1]}
Traceback (most recent call last):
File "/lcrc/project/AWA-beam-dynamics/software/runOPAL/runOPAL/runOPAL.py", line 232, in <module>
main(sys.argv[1:])
File "/lcrc/project/AWA-beam-dynamics/software/runOPAL/runOPAL/runOPAL.py", line 220, in main
traverseRanges(ranges.items(), opaldict, args)
File "/lcrc/project/AWA-beam-dynamics/software/runOPAL/runOPAL/runOPAL.py", line 74, in traverseRanges
head = list[0]
TypeError: 'dict_items' object does not support indexing
I think its a python3 conversion issue. I am currently working on it among other things so if you guys can get to it first that would be helpful. Thanks, Ryan Roussel - ANL