diff options
author | Nao Pross <np@0hm.ch> | 2024-05-12 15:30:35 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-05-12 15:30:35 +0200 |
commit | 62fc32b6c38b5f0296bdc4aab54e5484f727ac45 (patch) | |
tree | 8935452c346610ec6c40fab1b78a9ceb3e4e43c1 | |
parent | Replace marimo with Jupyter notebooks (diff) | |
download | sumofsquares-62fc32b6c38b5f0296bdc4aab54e5484f727ac45.tar.gz sumofsquares-62fc32b6c38b5f0296bdc4aab54e5484f727ac45.zip |
Fix imports after change in polymatrix dependency
-rw-r--r-- | sumofsquares/abc.py | 2 | ||||
-rw-r--r-- | sumofsquares/constraints.py | 4 | ||||
-rw-r--r-- | sumofsquares/problems.py | 2 | ||||
-rw-r--r-- | 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): |