fix data look-up for multiple fit models

This commit is contained in:
Dominik Demuth 2023-09-27 15:38:55 +02:00
parent 0046d04683
commit f9bb466cb3

View File

@ -454,8 +454,8 @@ class UpperManagement(QtCore.QObject):
# iterate over order of set id in active order and access parameter inside loop # iterate over order of set id in active order and access parameter inside loop
# instead of directly looping # instead of directly looping
try: try:
list_ids = list(model_p['data_parameter'].keys()) list_ids = list(self.active_id)
set_order = [self.active_id.index(i) for i in list_ids] set_order = [self.active_id.index(i) for i in model_p['data_parameter'].keys()]
except ValueError as e: except ValueError as e:
raise Exception('Getting order failed') from e raise Exception('Getting order failed') from e