From af4d7b569c29a1b22ca991d3a2172e1e54933758 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Wed, 17 Apr 2024 18:43:07 +0200 Subject: Minor changes --- polymatrix/expression/to.py | 4 ++++ polymatrix/expressionstate/mixins.py | 2 -- 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: -- cgit v1.2.1