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

Method get_fn_mode

Utility/Visualize/Matplotlib_Visualize.py:48–52  ·  view source on GitHub ↗
(cls, func: T.Callable[T.Concatenate[T_Mode, T_Input], T_Output])

Source from the content-addressed store, hash-verified

46
47 @classmethod
48 def get_fn_mode(cls, func: T.Callable[T.Concatenate[T_Mode, T_Input], T_Output]) -> T_Mode:
49 assert func.__name__ in cls.func_mode
50 func_mode = cls.func_mode[func.__name__]
51 if func_mode == 'default': return cls.default_mode
52 return func_mode
53
54 @staticmethod
55 def register(func: T.Callable[T_Input, Figure]) -> T.Callable[T.Concatenate[str, T_Input], None]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected