MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / from_config

Method from_config

scenedetect/_cli/config.py:223–230  ·  view source on GitHub ↗
(config_value: str, default: "ScoreWeightsValue")

Source from the content-addressed store, hash-verified

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
233class KernelSizeValue(ValidatedValue):

Callers

nothing calls this directly

Calls 2

ScoreWeightsValueClass · 0.85
OptionParseFailureClass · 0.85

Tested by

no test coverage detected