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

Function _pop_args

monai/bundle/scripts.py:114–119  ·  view source on GitHub ↗

Pop args from the `src` dictionary based on specified keys in `args` and (key, default value) pairs in `kwargs`.

(src: dict, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

112
113
114def _pop_args(src: dict, *args: Any, **kwargs: Any) -> tuple:
115 """
116 Pop args from the `src` dictionary based on specified keys in `args` and (key, default value) pairs in `kwargs`.
117
118 """
119 return tuple([src.pop(i) for i in args] + [src.pop(k, v) for k, v in kwargs.items()])
120
121
122def _log_input_summary(tag: str, args: dict) -> None:

Callers 7

downloadFunction · 0.85
verify_metadataFunction · 0.85
verify_net_in_outFunction · 0.85
onnx_exportFunction · 0.85
ckpt_exportFunction · 0.85
trt_exportFunction · 0.85
create_workflowFunction · 0.85

Calls 1

popMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…