From 99d48fdc5a10d6b383e1cbea3f35050f2f5b7844 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sat, 11 May 2024 16:39:26 +0200 Subject: Whitespace --- sumofsquares/constraints.py | 2 +- sumofsquares/error.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sumofsquares/constraints.py b/sumofsquares/constraints.py index 69b5871..23f12c6 100644 --- a/sumofsquares/constraints.py +++ b/sumofsquares/constraints.py @@ -125,7 +125,7 @@ def putinar_psatz( for domain_poly in constr.domain.polynomials: # To know the degree of the domain polynomial we need to evaluate the # expression, hence we use a monad here - def make_multiplier( state: ExpressionState) -> tuple[ExpressionState, PolyMatrix]: + def make_multiplier(state: ExpressionState) -> tuple[ExpressionState, PolyMatrix]: state, constr_pm = constr.expression.degree().apply(state) state, domain_poly_pm = domain_poly.degree().apply(state) diff --git a/sumofsquares/error.py b/sumofsquares/error.py index 70c00cc..6fe04fd 100644 --- a/sumofsquares/error.py +++ b/sumofsquares/error.py @@ -5,6 +5,7 @@ Errors and exceptions raised by the sum of squares package. class NotSupportedBySolver(Exception): """ The chosen solver cannot solve this problem. """ + class SolverError(Exception): """ The solver failed to solve the problem """ -- cgit v1.2.1