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

Method from_config

scenedetect/_cli/config.py:190–194  ·  view source on GitHub ↗
(config_value: str, default: "CropValue")

Source from the content-addressed store, hash-verified

188
189 @staticmethod
190 def from_config(config_value: str, default: "CropValue") -> "CropValue":
191 try:
192 return CropValue(config_value)
193 except ValueError as ex:
194 raise OptionParseFailure(f"{ex}") from ex
195
196
197class ScoreWeightsValue(ValidatedValue):

Callers 1

_parse_configFunction · 0.45

Calls 2

CropValueClass · 0.85
OptionParseFailureClass · 0.85

Tested by

no test coverage detected