Package list ctdconverter / d3d36d0
Fixed type Luis de la Garza 4 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9999
100100 # add inputs/outputs
101101 for param in utils.extract_and_flatten_parameters(ctd_model):
102 if param.name in args.blacklisted_parameters:
103 continue
104
102105 param_name = utils.extract_param_name(param)
103106 cwl_fixed_param_name = fix_param_name(param_name)
104107 hardcoded_value = args.parameter_hardcoder.get_hardcoded_value(param_name, ctd_model.name)
181184 # for instance ['null', int]
182185 def generate_cwl_param_type(param, forced_type=None):
183186 cwl_type = TYPE_TO_CWL_TYPE[param.type] if forced_type is None else forced_type
184 return cwl_type if param.required else "['null', %s]" % cwl_type
187 return cwl_type if param.required else ['null', cwl_type]