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

Method normalize_id

monai/bundle/reference_resolver.py:206–213  ·  view source on GitHub ↗

Normalize the id string to consistently use `cls.sep`. Args: id: id string to be normalized.

(cls, id: str | int)

Source from the content-addressed store, hash-verified

204
205 @classmethod
206 def normalize_id(cls, id: str | int) -> str:
207 """
208 Normalize the id string to consistently use `cls.sep`.
209
210 Args:
211 id: id string to be normalized.
212 """
213 return str(id).replace("#", cls.sep) # backward compatibility `#` is the old separator
214
215 def normalize_meta_id(self, config: Any) -> Any:
216 """

Callers 8

get_itemMethod · 0.95
_resolve_one_itemMethod · 0.95
split_idMethod · 0.80
match_refs_patternMethod · 0.80
update_refs_patternMethod · 0.80
setMethod · 0.80
split_path_idMethod · 0.80
resolve_relative_idsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected