Skip to content

Commit

Permalink
Uses is_decision_node in another place
Browse files Browse the repository at this point in the history
  • Loading branch information
MoseleyS committed Nov 1, 2023
1 parent 8730e03 commit 1ae849d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion improver/categorical/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 1ae849d

Please sign in to comment.