Codebase list ctdconverter / 7267d88
Topmost parameter group must not be named '1' anymore to generate names for nested parameters Luis de la Garza 7 years ago
1 changed file(s) with 10 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
674674
675675
676676 def get_param_name(param):
677 if type(param.parent) == ParameterGroup and param.parent.name != '1':
678 return get_param_name(param.parent) + ":" + param.name
677 # we generate parameters with colons for subgroups, but not for the topmost parents (OpenMS legacy)
678 if type(param.parent) == ParameterGroup and param.parent.parent != None:
679 return get_param_name(param.parent) + ":" + resolve_param_mapping(param)
679680 else:
680 return param.name
681 return resolve_param_mapping(param)
682
683
684 # some parameters are mapped to command line options, this method helps resolve those mappings, if any
685 # TODO: implement mapping of parameters!!!
686 def resolve_param_mapping(param):
687 return param.name
681688
682689
683690 def create_command(tool, model, **kwargs):