pyiron_workflow.output_parser module

Inspects code to automatically parse return values as strings

class pyiron_workflow.output_parser.ParseOutput(function)[source]

Bases: object

Given a function with at most one return expression, inspects the source code and parses a list of strings containing the returned values. If the function returns None, the parsed value is also None. This parsed value is evaluated at instantiation and stored in the output attribute. In case more than one return expression is found, a ValueError is raised.

property dedented_source_string
property func
get_parsed_output()[source]
get_string(node)[source]
property node_return
property output
property source