UCATLAS / xAODAnaHelpers

ATLAS Run 2 and Run 3 analysis framework for AnalysisTop and AnalysisBase for proton-smashing physics
https://ucatlas.github.io/xAODAnaHelpers/
Apache License 2.0
42 stars 127 forks source link

Fixing logger info for AB >=25.2.19 #1703

Closed mdhank closed 3 months ago

mdhank commented 3 months ago

Submitting to the grid fails in recent versions of AnalysisBase with e.g.

An exception was caught! (xAH_run.py:684) Traceback (most recent call last): File "/data/mhank/Penn_Analysis/Aug2024_Calib_Updates_2/blcharginohlworkspace/build/x86_64-el9-gcc13-opt/../../source/xAODAnaHelpers/scripts/xAH_run.py", line 583, in <module> xAH_logger.info("\t - driver.options().{0:s}({1:s}, {2})".format(setter, getattr(ROOT.EL.Job, opt), getattr(args, opt))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: unsupported format string passed to string.__format__

I believe this is due to https://github.com/root-project/root/issues/15153, which would apply to AnalysisBase 25.2.19+. Using repr allows this to submit successfully.