Codebase list ctdconverter / 151d213
Fix for boolean values which have "true" as their default value (and therefore aren't a real flag). Clemens BlanK 7 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
11951195 ## detect boolean selects of OpenMS
11961196 if is_selection_parameter(param):
11971197 if len(param.restrictions.choices) == 2:
1198 if "false" in param.restrictions.choices and "true" in param.restrictions.choices:
1198 # check that default value is false to make sure it is an actual flag
1199 if "false" in param.restrictions.choices and \
1200 "true" in param.restrictions.choices and \
1201 param.default == "false":
11991202 return True
12001203 else:
12011204 return param.type is bool