diff --git a/data-processing-lib/python/src/data_processing/utils/params_utils.py b/data-processing-lib/python/src/data_processing/utils/params_utils.py index e83f55ec3..628b4f0b3 100644 --- a/data-processing-lib/python/src/data_processing/utils/params_utils.py +++ b/data-processing-lib/python/src/data_processing/utils/params_utils.py @@ -94,16 +94,17 @@ def __dict_to_str(dict_val: dict[str, str], initial_indent: str, indent_per_leve @staticmethod def get_config_parameter(params: dict[str, Any]) -> str: """ - Get parameters for multi launch + Get the key name of the config parameter :param params: original parameters - :return: tuple of name of repeated parameter, list of repeated parameters, and dict of non changing ones + :return: the name of the key for the config parameter """ # find config parameter config = None for key in params.keys(): if key.startswith("data") and key.endswith("config"): - config = key - break + if params[key] is not None and params[key] != "None" and len(params[key]) > 0: + config = key + break return config @staticmethod