diff --git a/choose_best_layout.py b/choose_best_layout.py index 8ac4dc2..9cbf588 100644 --- a/choose_best_layout.py +++ b/choose_best_layout.py @@ -102,10 +102,12 @@ def metric_value(data: Dict[str, Any], metric: str) -> float: val = data.get(metric) if val is None: # treat missing metrics as infinite (worst) + # (could also log here if you want more visibility) return float("inf") return float(val) + def main() -> None: args = parse_args()