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

Method check_properties

monai/bundle/workflows.py:232–240  ·  view source on GitHub ↗

Check whether the required properties are existing in the bundle workflow. If no workflow type specified, return None, otherwise, return a list of required but missing properties.

(self)

Source from the content-addressed store, hash-verified

230 self.properties[name] = {BundleProperty.DESC: desc, BundleProperty.REQUIRED: required}
231
232 def check_properties(self) -> list[str] | None:
233 """
234 Check whether the required properties are existing in the bundle workflow.
235 If no workflow type specified, return None, otherwise, return a list of required but missing properties.
236
237 """
238 if self.properties is None:
239 return None
240 return [n for n, p in self.properties.items() if p.get(BundleProperty.REQUIRED, False) and not hasattr(self, n)]
241
242
243class PythonicWorkflow(BundleWorkflow):

Callers 2

check_propertiesMethod · 0.45
_test_infererMethod · 0.45

Calls 1

getMethod · 0.80

Tested by 1

_test_infererMethod · 0.36