Skip to content

Commit

Permalink
🎨 pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 6, 2025
1 parent 7f2866b commit 4084919
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mqt/qao/karp/karp_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,7 @@ def convert_dict_to_string(dictionary: dict[Any, Any]) -> str:
Returns:
str: Formatted string representation of the dictionary.
"""
result = "Valid Solution" if dictionary.get("Valid Solution", False) else "Invalid Solution"
result = "Valid Solution" if dictionary.get("Valid Solution") else "Invalid Solution"
for key, value in dictionary.items():
if key != "Valid Solution" and isinstance(value, dict):
result += f"\n{key}:"
Expand Down
2 changes: 1 addition & 1 deletion src/mqt/qao/karp/karp_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def check_three_sat_solution(clauses: list[list[str]], solution: dict[str, float
@staticmethod
def convert_dict_to_string(dictionary: dict[str, Any]) -> str:
"""Converts a dictionary of solution validation results into a readable string format."""
result = "Valid Solution" if dictionary.get("Valid Solution", False) else "Invalid Solution"
result = "Valid Solution" if dictionary.get("Valid Solution") else "Invalid Solution"
for key, value in dictionary.items():
if key != "Valid Solution":
result += f"\n{key}:"
Expand Down
2 changes: 1 addition & 1 deletion src/mqt/qao/karp/karp_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ def convert_dict_to_string(dictionary: dict[Any, Any]) -> str:
Returns:
str: A formatted string representation of the validation results.
"""
result = "Valid Solution" if dictionary.get("Valid Solution", False) else "Invalid Solution"
result = "Valid Solution" if dictionary.get("Valid Solution") else "Invalid Solution"

for key, value in dictionary.items():
if key != "Valid Solution" and isinstance(value, dict):
Expand Down

0 comments on commit 4084919

Please sign in to comment.