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

Method is_valid_config

DataLoader/Transform.py:190–195  ·  view source on GitHub ↗
(cls, config: SimpleNamespace | None)

Source from the content-addressed store, hash-verified

188 """
189 @classmethod
190 def is_valid_config(cls, config: SimpleNamespace | None) -> None:
191 cls._enforce_config_spec(config, {
192 "height": lambda v: isinstance(v, int) and v > 0,
193 "width": lambda v: isinstance(v, int) and v > 0,
194 "interp" : lambda v: v in {"nearest", "bilinear"},
195 })
196
197 def forward(self, frame: StereoFrame) -> StereoFrame:
198 orig_height, orig_width = frame.stereo.height, frame.stereo.width

Callers

nothing calls this directly

Calls 1

_enforce_config_specMethod · 0.80

Tested by

no test coverage detected