Fixed type
Luis de la Garza
6 years ago
99 | 99 | |
100 | 100 | # add inputs/outputs |
101 | 101 | for param in utils.extract_and_flatten_parameters(ctd_model): |
102 | if param.name in args.blacklisted_parameters: | |
103 | continue | |
104 | ||
102 | 105 | param_name = utils.extract_param_name(param) |
103 | 106 | cwl_fixed_param_name = fix_param_name(param_name) |
104 | 107 | hardcoded_value = args.parameter_hardcoder.get_hardcoded_value(param_name, ctd_model.name) |
181 | 184 | # for instance ['null', int] |
182 | 185 | def generate_cwl_param_type(param, forced_type=None): |
183 | 186 | 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] |