Fix for boolean values which have "true" as their default value (and therefore aren't a real flag).
Clemens BlanK
7 years ago
1195 | 1195 | ## detect boolean selects of OpenMS |
1196 | 1196 | if is_selection_parameter(param): |
1197 | 1197 | 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": | |
1199 | 1202 | return True |
1200 | 1203 | else: |
1201 | 1204 | return param.type is bool |