friendlysam.parts.Part.find¶
-
Part.find(name)¶ Try to find a part by name.
Searches among
descendants_and_self, comparing thename. If there is exactly one match, it is returned.Parameters: name – The name to search for. Returns: attr:descendants_and_self. Return type: A part named name, if one exists amongRaises: ValueError– If there is no match or several matches.