Project

General

Profile

Actions

Bug #3161

closed

jeolconfig.py does not read different level of values consistently among python versions

Added by Anchi Cheng about 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
04/28/2015
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.1.0
Show in known bugs:
No
Workaround:

Description

python 2.6 gives an error when parsing beam_tilt_scale but not python 2.7

Traceback (most recent call last):
  File "jeolconfig.py", line 135, in <module>
    print getConfigured()
  File "jeolconfig.py", line 131, in getConfigured
    configured = app.parse()
  File "jeolconfig.py", line 123, in parse
    self.addHierarchyValue(name,levels,value)
  File "jeolconfig.py", line 69, in addHierarchyValue
    self.configured[name][levels[0]][levels[1]]=value
KeyError: 'beamtilt_scale'
Actions #1

Updated by Anchi Cheng about 9 years ago

The difference is probably caused by the order of dictionary keys returned in dict.keys()

r18817 fix this, I think.

Actions #2

Updated by Anchi Cheng over 6 years ago

  • Status changed from Assigned to Closed
  • Target version set to Appion/Leginon 3.2
Actions

Also available in: Atom PDF