From 5afdf45211737122fdd0d728d29e90e14c744767 Mon Sep 17 00:00:00 2001 From: Ivan Ruiz Manuel <72193617+irm-codebase@users.noreply.github.com> Date: Sat, 17 Aug 2024 14:49:12 +0200 Subject: [PATCH] Minor test fix. --- src/calliope/preprocess/model_math.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/calliope/preprocess/model_math.py b/src/calliope/preprocess/model_math.py index 54ab6960..a05a6a12 100644 --- a/src/calliope/preprocess/model_math.py +++ b/src/calliope/preprocess/model_math.py @@ -63,13 +63,12 @@ def __iter__(self): def __repr__(self) -> str: """Custom string representation of class.""" - return f""" - Calliope math definition dictionary with: - {len(self.data["variables"])} decision variable(s) - {len(self.data["global_expressions"])} global expression(s) - {len(self.data["constraints"])} constraint(s) - {len(self.data["piecewise_constraints"])} piecewise constraint(s) - {len(self.data["objectives"])} objective(s) + return f"""Calliope math definition dictionary with: + {len(self.data["variables"])} decision variable(s) + {len(self.data["global_expressions"])} global expression(s) + {len(self.data["constraints"])} constraint(s) + {len(self.data["piecewise_constraints"])} piecewise constraint(s) + {len(self.data["objectives"])} objective(s) """ def add(self, math: AttrDict):