Field3D.find_path

Field3D.find_path(self, attr):


Description

Finds a specified attribute in the attributes list and returns the corresponding element in the paths list.

Parameters

  • attr (str): The specific element to find in the first list.

Returns

  • str: The corresponding element in the second list if the specific element is found in the first list.

Raises

  • TypeError: If 'attr' is not a string.

  • ValueError: If the specific element is not found in the attributes list.

Last updated