Skip to content

Commit

Permalink
Bugfix: Allow missing config file in GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfG committed Oct 13, 2023
1 parent 1fa7cc5 commit 5afeb97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ms2rescore/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 5afeb97

Please sign in to comment.