MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / deco

Method deco

monai/utils/component_store.py:74–76  ·  view source on GitHub ↗

Decorator to add a function to a store.

(func)

Source from the content-addressed store, hash-verified

72 """Returns a decorator which stores the decorated function under `name` with description `desc`."""
73
74 def deco(func):
75 """Decorator to add a function to a store."""
76 return self.add(name, desc, func)
77
78 return deco
79

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected