From 5afeb97d1dab39e582956fac107bff933082131f Mon Sep 17 00:00:00 2001 From: RalfG Date: Fri, 13 Oct 2023 12:03:25 +0200 Subject: [PATCH] Bugfix: Allow missing config file in GUI --- ms2rescore/gui/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ms2rescore/gui/app.py b/ms2rescore/gui/app.py index caafd537..c436a902 100644 --- a/ms2rescore/gui/app.py +++ b/ms2rescore/gui/app.py @@ -629,7 +629,11 @@ def get(self) -> Dict: def function(config): """Function to be executed in a separate process.""" config = config.copy() - config = parse_configurations([config["ms2rescore"]["config_file"], config]) + if config["ms2rescore"]["config_file"]: + config_list = [[config["ms2rescore"]["config_file"], config]] + else: + config_list = [config] + config = parse_configurations(config_list) rescore(configuration=config)