Skip to content

Callable recipes - #308

Merged
liamhuber merged 5 commits into
mainfrom
callable-recipes
Jul 27, 2026
Merged

Callable recipes#308
liamhuber merged 5 commits into
mainfrom
callable-recipes

Conversation

@liamhuber

Copy link
Copy Markdown
Member

Makes NodeRecipe.__call__ an abstract method, and fulfills it in the outstanding flow controllers (and workflows without a reference) via local import to the wfms. At the same time, shores up errors that came from input incompleteness in the toy wfms.

Closes #307

After this, all @workflow-decorated recipes stay callable, even when they invoke direct calls to recipe objects. This finalizes fulfillment of a promise that flowrep-decorated functions still work as plain functions.

liamhuber and others added 5 commits July 27, 2026 09:44
Let versions find them. Had trouble on my local machine with `tests.integration...` vs `integration...`.

Signed-off-by: Liam Huber <liamhuber@greyhavensolutions.com>
This takes the quick-and-easy path of using a local import to the wfms module.

Signed-off-by: Liam Huber <liamhuber@greyhavensolutions.com>
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Liam Huber <liamhuber@greyhavensolutions.com>
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Liam Huber <liamhuber@greyhavensolutions.com>
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Liam Huber <liamhuber@greyhavensolutions.com>
@github-actions

Copy link
Copy Markdown

Binder 👈 Launch a binder notebook on branch pyiron/flowrep/callable-recipes

@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.94%. Comparing base (8b08fbd) to head (1da92b3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #308   +/-   ##
=======================================
  Coverage   99.94%   99.94%           
=======================================
  Files          44       44           
  Lines        3517     3569   +52     
=======================================
+ Hits         3515     3567   +52     
  Misses          2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@liamhuber
liamhuber merged commit 4f65e6f into main Jul 27, 2026
23 checks passed
@liamhuber
liamhuber deleted the callable-recipes branch July 27, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make flow control recipes callable

1 participant