summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-04-17 18:43:07 +0200
committerNao Pross <np@0hm.ch>2024-04-17 18:43:07 +0200
commitaf4d7b569c29a1b22ca991d3a2172e1e54933758 (patch)
tree766f97a4f2602aed4dde5f475903dbee4dbf8278
parentFix circular import and typing in FromSympy (diff)
downloadpolymatrix-af4d7b569c29a1b22ca991d3a2172e1e54933758.tar.gz
polymatrix-af4d7b569c29a1b22ca991d3a2172e1e54933758.zip
Minor changes
Diffstat (limited to '')
-rw-r--r--polymatrix/expression/to.py4
-rw-r--r--polymatrix/expressionstate/mixins.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/polymatrix/expression/to.py b/polymatrix/expression/to.py
index c334a9e..0cea1d9 100644
--- a/polymatrix/expression/to.py
+++ b/polymatrix/expression/to.py
@@ -47,6 +47,10 @@ def to_constant(
def to_sympy(
expr: Expression,
) -> StateMonadMixin[ExpressionState, sympy.Expr]:
+
+ # TODO: fix this function with new expression state
+ raise NotImplementedError("Broken because FromTupleExpr was removed")
+
def func(state: ExpressionState):
state, underlying = expr.apply(state)
diff --git a/polymatrix/expressionstate/mixins.py b/polymatrix/expressionstate/mixins.py
index 99b2cb1..9c30475 100644
--- a/polymatrix/expressionstate/mixins.py
+++ b/polymatrix/expressionstate/mixins.py
@@ -20,8 +20,6 @@ class IndexRange(NamedTuple):
class ExpressionStateMixin(
StateCacheMixin,
):
- # -- New API --
-
@property
@abstractmethod
def n_variables(self) -> int: