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

Method parse

monai/bundle/config_parser.py:459–471  ·  view source on GitHub ↗

Recursively resolve `self.config` to replace the macro tokens with target content. Then recursively parse the config source, add every item as ``ConfigItem`` to the reference resolver. Args: reset: whether to reset the ``reference_resolver`` before parsing. Defa

(self, reset: bool = True)

Source from the content-addressed store, hash-verified

457 return False
458
459 def parse(self, reset: bool = True) -> None:
460 """
461 Recursively resolve `self.config` to replace the macro tokens with target content.
462 Then recursively parse the config source, add every item as ``ConfigItem`` to the reference resolver.
463
464 Args:
465 reset: whether to reset the ``reference_resolver`` before parsing. Defaults to `True`.
466
467 """
468 if reset:
469 self.ref_resolver.reset()
470 self.resolve_macro_and_relative_ids()
471 self._do_parse(config=self.get())
472
473 def get_parsed_content(self, id: str = "", **kwargs: Any) -> Any:
474 """

Callers 13

get_parsed_contentMethod · 0.95
test_trainMethod · 0.95
test_evaluateMethod · 0.95
test_trainMethod · 0.95
test_evaluateMethod · 0.95
test_containsMethod · 0.95
setup.pyFile · 0.80
_onnx_trt_compileFunction · 0.80
_parse_import_stringMethod · 0.80
is_import_statementMethod · 0.80
_get_var_namesFunction · 0.80

Calls 4

_do_parseMethod · 0.95
getMethod · 0.95
resetMethod · 0.45

Tested by 6

test_trainMethod · 0.76
test_evaluateMethod · 0.76
test_trainMethod · 0.76
test_evaluateMethod · 0.76
test_containsMethod · 0.76