From 20f39971f77db4ec3b79a7dea7c419be14321446 Mon Sep 17 00:00:00 2001 From: Tom Brown Date: Wed, 24 Jan 2024 13:38:39 +0100 Subject: [PATCH] solve_network: make sure infeasibilities are printed properly Without this formatting, there is an error adding a string to a list. --- scripts/solve_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/solve_network.py b/scripts/solve_network.py index 9fc41555..23e9b0f8 100644 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -926,7 +926,7 @@ def solve_network(n, config, solving, opts="", **kwargs): ) if "infeasible" in condition: labels = n.model.compute_infeasibilities() - logger.info("Labels:\n" + labels) + logger.info(f"Labels:\n{labels}") n.model.print_infeasibilities() raise RuntimeError("Solving status 'infeasible'")