From 03b6dc64172d0422bb56007a6da7cd7e6e9eeb9d Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 26 May 2024 19:41:07 +0200 Subject: Fix bug in ExpressionState.get_variable_from_name_or --- polymatrix/expressionstate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1