(config_value: str, default: "ScoreWeightsValue")
| 221 | |
| 222 | @staticmethod |
| 223 | def from_config(config_value: str, default: "ScoreWeightsValue") -> "ScoreWeightsValue": |
| 224 | try: |
| 225 | return ScoreWeightsValue(config_value) |
| 226 | except ValueError as ex: |
| 227 | raise OptionParseFailure( |
| 228 | "Score weights must be specified as four numbers in the form (H,S,L,E)," |
| 229 | " e.g. (0.9, 0.2, 2.0, 0.5). Commas/brackets/slashes are ignored." |
| 230 | ) from ex |
| 231 | |
| 232 | |
| 233 | class KernelSizeValue(ValidatedValue): |
nothing calls this directly
no test coverage detected