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

Function _parse_var

monai/utils/misc.py:402–406  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

400 """
401
402 def _parse_var(s):
403 items = s.split("=", maxsplit=1)
404 key = items[0].strip(" \n\r\t'")
405 value = items[1].strip(" \n\r\t'") if len(items) > 1 else None
406 return key, value
407
408 d = {}
409 if items:

Callers 1

list_to_dictFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…