MCPcopy Index your code
hub / github.com/Project-MONAI/MONAI / update

Method update

monai/bundle/config_parser.py:434–444  ·  view source on GitHub ↗

Set the ``id`` and the corresponding config content in pairs, see also :py:meth:`__setitem__`. For example, ``parser.update({"train::epoch": 100, "train::lr": 0.02})`` Args: pairs: dictionary of `id` and config pairs.

(self, pairs: dict[str, Any])

Source from the content-addressed store, hash-verified

432 self[ReferenceResolver.normalize_id(id)] = self.ref_resolver.normalize_meta_id(config)
433
434 def update(self, pairs: dict[str, Any]) -> None:
435 """
436 Set the ``id`` and the corresponding config content in pairs, see also :py:meth:`__setitem__`.
437 For example, ``parser.update({"train::epoch": 100, "train::lr": 0.02})``
438
439 Args:
440 pairs: dictionary of `id` and config pairs.
441
442 """
443 for k, v in pairs.items():
444 self[k] = v
445
446 def __contains__(self, id: str | int) -> bool:
447 """

Callers 15

test_config_contentMethod · 0.95
get_cmdsFunction · 0.45
storeMethod · 0.45
flatten_dictFunction · 0.45
plot_engine_statusFunction · 0.45
_update_statusMethod · 0.45
status_dictMethod · 0.45
get_data_statsMethod · 0.45
summaryMethod · 0.45
update_toMethod · 0.45
check_hashFunction · 0.45

Calls

no outgoing calls