pyiron/pyiron_workflow

Add convenient callbacks for graph managers

Open

#612 opened on Mar 5, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (3 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (23 stars)
PR merge metrics
 (PR metrics pending)

Description

E.g. for pyironflow it would actually probably be quite nice to add

finally:
    for fnc in self.child_starting/finished/emitting_callbacks:
        fnc(child)

in each of Composite.register_child_starting/finished/emitting, where the callbacks take the form Callable[[Node], None] and the properties child_starting/finished/emitting_callbacks default to an empty list.

Contributor guide