describe#
- skrough.algorithms.meta.describe.describe(processing_element, override_node_name: Optional[str] = None, override_node_meta: Optional[Dict[str, Union[str, bool, int, float]]] = None, override_short_description: Optional[str] = None) DescriptionNode[source]#
Get a description graph of a given
processing_element.Prepare a description structure for a given
processing_element. The function will useprocessing_elementmethod if available for the given object, i.e., it will use the method to letprocessing_elementself-describe itself. Otherwise, ifprocessing_elementis a callable then the function will automatically generate the description structure using available information (usingautogenerate_description_nodefunction), e.g., a name attribute stored directly in the element or in its class, or parsing the element’s docstring to obtain textual description. For non-callable elements the function fill produce a dummy description structure filled withNone.- Parameters:
processing_element – A processing element to be described.
override_node_name – If a string value is given then it will override the results’s
node_nameattribute. Defaults toNone.override_node_meta – If a
NodeMetavalue is given them it will override the results’snode_metaattribute. Defaults toNone.override_short_description – If a string value is give then it will override the result’s
short_descriptionattribute and it will also setlong_descriptiontoNone. Defaults toNone.
- Returns:
A description graph structure representing the input
processing_element.