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

Function remove_extra_metadata

monai/data/utils.py:1516–1527  ·  view source on GitHub ↗

Remove extra metadata from the dictionary. Operates in-place so nothing is returned. Args: meta: dictionary containing metadata to be modified. Returns: `None`

(meta: dict)

Source from the content-addressed store, hash-verified

1514
1515
1516def remove_extra_metadata(meta: dict) -> None:
1517 """
1518 Remove extra metadata from the dictionary. Operates in-place so nothing is returned.
1519
1520 Args:
1521 meta: dictionary containing metadata to be modified.
1522
1523 Returns:
1524 `None`
1525 """
1526 keys = get_extra_metadata_keys()
1527 remove_keys(data=meta, keys=keys)
1528
1529
1530def get_extra_metadata_keys() -> list[str]:

Callers 1

Calls 2

get_extra_metadata_keysFunction · 0.85
remove_keysFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…