pyleecan.Functions.check_parent module¶
- check_parent(obj, Nparent)[source]¶
Recursively check that the object have the correct number of parent For instance: check_parent(stator, 3) will check that output.simu.machine.stator exist
- Parameters:
obj – A pyleecan object
Nparent (int) – Number of parent we expect the object to have
- Returns:
has_parent – True if the object has N parent
- Return type:
bool