diff --git a/improver/categorical/utilities.py b/improver/categorical/utilities.py index cf340b76d8..ec3077c467 100644 --- a/improver/categorical/utilities.py +++ b/improver/categorical/utilities.py @@ -108,7 +108,7 @@ def _make_thresholds_with_units(items): return iris.coords.AuxCoord(values, units=units) for key, query in tree.items(): - if key == "meta" or "leaf" in query.keys(): + if not is_decision_node(key, query): continue query["diagnostic_thresholds"] = _make_thresholds_with_units( query["diagnostic_thresholds"]