summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-05-07 02:56:30 +0200
committerNao Pross <np@0hm.ch>2024-05-07 02:56:30 +0200
commit6494908e77b95832e4f59b2af2733e4fe5d37cfc (patch)
treea02765d5e1543f4d4c3f9992c199e89f43ebc6aa
parentAdd MonomialIndex.combinations_of_degree (diff)
downloadpolymatrix-6494908e77b95832e4f59b2af2733e4fe5d37cfc.tar.gz
polymatrix-6494908e77b95832e4f59b2af2733e4fe5d37cfc.zip
Remove old comment
-rw-r--r--polymatrix/expressionstate/mixins.py3
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: