From 62fc32b6c38b5f0296bdc4aab54e5484f727ac45 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 12 May 2024 15:30:35 +0200 Subject: Fix imports after change in polymatrix dependency --- sumofsquares/abc.py | 2 +- sumofsquares/constraints.py | 4 ++-- sumofsquares/problems.py | 2 +- sumofsquares/variable.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sumofsquares/abc.py b/sumofsquares/abc.py index e28fbd3..f0e95bb 100644 --- a/sumofsquares/abc.py +++ b/sumofsquares/abc.py @@ -7,7 +7,7 @@ from enum import Enum, auto from polymatrix.expression.expression import Expression from polymatrix.expressionstate import ExpressionState -from polymatrix.variable.abc import Variable +from polymatrix.variable import Variable from sumofsquares.variable import OptVariable diff --git a/sumofsquares/constraints.py b/sumofsquares/constraints.py index 1ff6e10..71dbb06 100644 --- a/sumofsquares/constraints.py +++ b/sumofsquares/constraints.py @@ -10,8 +10,8 @@ import polymatrix as poly from polymatrix.expression.expression import Expression from polymatrix.expressionstate import ExpressionState from polymatrix.polymatrix.abc import PolyMatrix -from polymatrix.statemonad.init import init_state_monad -from polymatrix.variable.abc import Variable +from polymatrix.statemonad import init_state_monad +from polymatrix.variable import Variable from .abc import Set, Constraint from .error import AlgebraicError diff --git a/sumofsquares/problems.py b/sumofsquares/problems.py index e234f62..500d06a 100644 --- a/sumofsquares/problems.py +++ b/sumofsquares/problems.py @@ -14,7 +14,7 @@ from typing_extensions import override from polymatrix.expression.expression import Expression, VariableExpression, init_expression from polymatrix.expressionstate import ExpressionState -from polymatrix.variable.abc import Variable +from polymatrix.variable import Variable from .abc import Problem, Constraint, Solver, Result from .constraints import NonNegative, putinar_psatz diff --git a/sumofsquares/variable.py b/sumofsquares/variable.py index 6b2e768..f309406 100644 --- a/sumofsquares/variable.py +++ b/sumofsquares/variable.py @@ -20,7 +20,7 @@ from polymatrix.expressionstate import ExpressionState from polymatrix.polymatrix.abc import PolyMatrix from polymatrix.polymatrix.init import init_poly_matrix from polymatrix.polymatrix.index import PolyMatrixDict, PolyDict, MonomialIndex, VariableIndex -from polymatrix.variable.abc import Variable +from polymatrix.variable import Variable class OptVariable(Variable): -- cgit v1.2.1