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

Method implement

Utility/Visualize/Rerun_Visualize.py:57–64  ·  view source on GitHub ↗
(rerun_path: str, *args: T_Input.args, **kwargs: T_Input.kwargs)

Source from the content-addressed store, hash-verified

55 def register(func: T.Callable[T.Concatenate[str, T_Input], None]) -> T.Callable[T.Concatenate[str, T_Input], None]:
56 @wraps(func)
57 def implement(rerun_path: str, *args: T_Input.args, **kwargs: T_Input.kwargs) -> None:
58 if func.__name__ not in Rerun_Visualizer.func_mode:
59 Rerun_Visualizer.func_mode[func.__name__] = "default"
60
61 func_mode = Rerun_Visualizer.get_fn_mode(func)
62 match func_mode:
63 case "none": return None
64 case "rerun": func(rerun_path, *args, **kwargs)
65 return implement
66
67 @register

Callers

nothing calls this directly

Calls 1

get_fn_modeMethod · 0.45

Tested by

no test coverage detected