diff options
author | Nao Pross <np@0hm.ch> | 2024-05-07 02:56:30 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-05-07 02:56:30 +0200 |
commit | 6494908e77b95832e4f59b2af2733e4fe5d37cfc (patch) | |
tree | a02765d5e1543f4d4c3f9992c199e89f43ebc6aa | |
parent | Add MonomialIndex.combinations_of_degree (diff) | |
download | polymatrix-6494908e77b95832e4f59b2af2733e4fe5d37cfc.tar.gz polymatrix-6494908e77b95832e4f59b2af2733e4fe5d37cfc.zip |
Remove old comment
-rw-r--r-- | polymatrix/expressionstate/mixins.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/polymatrix/expressionstate/mixins.py b/polymatrix/expressionstate/mixins.py index 71add07..36dc5e7 100644 --- a/polymatrix/expressionstate/mixins.py +++ b/polymatrix/expressionstate/mixins.py @@ -35,7 +35,6 @@ class ExpressionStateMixin( def index(self, var: Variable) -> tuple[ExpressionStateMixin, IndexRange]: """ Index a variable and get its index range. """ - # Unwrap if wrapped in expression object if not isinstance(var, Variable): raise ValueError("State can only index object of type Variable!") @@ -50,7 +49,7 @@ class ExpressionStateMixin( return dataclasses.replace( self, n_variables=self.n_variables + size, - indices={**self.indices, var: index} + indices=self.indices | {var: index} ), index def register(self, var: Variable) -> ExpressionStateMixin: |