From 6459ec4e1129da62050bf137f5a3c88c120ce3fd Mon Sep 17 00:00:00 2001 From: ConorFWild <41680328+ConorFWild@users.noreply.github.com> Date: Thu, 16 Nov 2023 14:55:05 +0000 Subject: [PATCH] Fix to prevent collator failing to process manual inputs. THIS SHOULD HAVE BROKEN TESTS FOR CONFIG 2! WORRYING! --- src/xchemalign/collator.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xchemalign/collator.py b/src/xchemalign/collator.py index 255efac..8ddc120 100644 --- a/src/xchemalign/collator.py +++ b/src/xchemalign/collator.py @@ -184,6 +184,11 @@ def __init__(self, config_file, logger=None): ) elif type == Constants.CONFIG_TYPE_MANUAL: + # Determine which datasets to exclude + excluded_datasets = utils.find_property(input, Constants.CONFIG_EXCLUDE) + if not excluded_datasets: + excluded_datasets = [] + self.logger.info("adding input", input_path) self.inputs.append( Input(self.base_path, input_path, type, None, [], excluded_datasets, logger=self.logger)