From 728eb34ca7acb140e1482f30e201c5220d5b0e3c Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Fri, 1 Dec 2023 17:58:48 +0100 Subject: [PATCH] ignore sets without start parameter in fit prep --- src/gui_qt/main/management.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui_qt/main/management.py b/src/gui_qt/main/management.py index a4f7db5..5e73427 100644 --- a/src/gui_qt/main/management.py +++ b/src/gui_qt/main/management.py @@ -467,15 +467,15 @@ class UpperManagement(QtCore.QObject): m_complex = model_p['complex'] for set_id in list_ids: + if set_id not in model_p['data_parameter']: + continue + try: data_i = self.data[set_id] except KeyError as e: raise KeyError(f'{set_id} not found') from e - try: - set_params = model_p['data_parameter'][set_id] - except KeyError as e: - raise KeyError(f'No parameter found for {set_id}') from e + set_params = model_p['data_parameter'][set_id] if we_option.lower() == 'deltay': we = data_i.y_err**2