summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-05-26 19:41:07 +0200
committerNao Pross <np@0hm.ch>2024-05-27 00:02:26 +0200
commit03b6dc64172d0422bb56007a6da7cd7e6e9eeb9d (patch)
treea21489aea5fdb777d1250f58927761d77053e49c
parentFix bug in CombinationExprMixin (diff)
downloadpolymatrix-03b6dc64172d0422bb56007a6da7cd7e6e9eeb9d.tar.gz
polymatrix-03b6dc64172d0422bb56007a6da7cd7e6e9eeb9d.zip
Fix bug in ExpressionState.get_variable_from_name_or
Diffstat (limited to '')
-rw-r--r--polymatrix/expressionstate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/polymatrix/expressionstate.py b/polymatrix/expressionstate.py
index 90cb4a9..e330337 100644
--- a/polymatrix/expressionstate.py
+++ b/polymatrix/expressionstate.py
@@ -125,7 +125,7 @@ class ExpressionState(StateCacheMixin):
"""
for v in self.indices.keys():
if v.name == name:
- return name
+ return v
return if_not_present