Skip to content

Adjust to python 3 difference in output from pyAMI

Stewart Martin-Haugh requested to merge smh/athena:pyAMI_py3fix into master

Different output from pyAMI - in python 2 we get

[OrderedDict([(u'productionStep', u'select'), (u'tagType', u'q'))]

while in python 3 we get

[OrderedDict([('amiTag', 'q221')]), OrderedDict([('productionStep', 'select'), ('tagType', 'q'))]

i.e. a list with 1 OrderedDict element in python 2, then a list with 2 OrderedDict elements in python 3. Not clear why.

Put in a check on the size of the output. test_trigAna_q221_RDOtoRDOTrig_mt1_build.sh now runs in py3.

Merge request reports