From f9bb466cb3b5ceff9bb7e74ae87952e59c791061 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Wed, 27 Sep 2023 15:38:55 +0200 Subject: [PATCH] fix data look-up for multiple fit models --- src/gui_qt/main/management.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui_qt/main/management.py b/src/gui_qt/main/management.py index 4e6a09e..13e536e 100644 --- a/src/gui_qt/main/management.py +++ b/src/gui_qt/main/management.py @@ -454,8 +454,8 @@ class UpperManagement(QtCore.QObject): # iterate over order of set id in active order and access parameter inside loop # instead of directly looping try: - list_ids = list(model_p['data_parameter'].keys()) - set_order = [self.active_id.index(i) for i in list_ids] + list_ids = list(self.active_id) + set_order = [self.active_id.index(i) for i in model_p['data_parameter'].keys()] except ValueError as e: raise Exception('Getting order failed') from e