Skip to content

Less confusing errors for jet configuration

Dan Guest requested to merge dguest/athena:fixjet into main

The large-R jet calibration code has a lot of structures like

if something:
    var = "bla"
if something_else:
    var = "zork"
thing(var)

which is kind of fun to debug: I just get a lot of UnboundLocalError: local variable 'var' referenced before assignment. This makes it a bit better.

Merge request reports