MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / is_valid_config

Method is_valid_config

Module/KeypointSelector.py:208–213  ·  view source on GitHub ↗
(cls, config: SimpleNamespace | None)

Source from the content-addressed store, hash-verified

206
207 @classmethod
208 def is_valid_config(cls, config: SimpleNamespace | None) -> None:
209 cls._enforce_config_spec(config, {
210 "mask_width": lambda m: isinstance(m, int) and m >= 0,
211 "grad_std" : lambda g: isinstance(g, (int, float)) and g > 0.,
212 "nms_size" : lambda k: isinstance(k, int) and k >= 0 and (k % 2 == 1),
213 })
214
215
216class GridSelector(IKeypointSelector):

Callers

nothing calls this directly

Calls 1

_enforce_config_specMethod · 0.80

Tested by

no test coverage detected