From d0b3561c66cc762bb5498f4e8b24bfb656ed7fa3 Mon Sep 17 00:00:00 2001 From: Michael Schneeberger Date: Wed, 17 Aug 2022 17:31:26 +0200 Subject: bugfix: 'get_variable_indices' returns updated state instead of the old state --- polymatrix/expression/utils/getvariableindices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymatrix/expression/utils/getvariableindices.py b/polymatrix/expression/utils/getvariableindices.py index 7010d23..08b44d3 100644 --- a/polymatrix/expression/utils/getvariableindices.py +++ b/polymatrix/expression/utils/getvariableindices.py @@ -33,6 +33,6 @@ def get_variable_indices(state, variables): yield variable else: - yield state.offset_dict[variable][0] + yield global_state[0].offset_dict[variable][0] - return state, tuple(gen_indices()) + return global_state[0], tuple(gen_indices()) -- cgit v1.2.1