Skip to content

Commit

Permalink
Minor test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
irm-codebase committed Aug 17, 2024
1 parent b17f633 commit 5afdf45
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/calliope/preprocess/model_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5afdf45

Please sign in to comment.