Skip to content

Include flattening algorithm#113

Open
samwaseda wants to merge 22 commits intomainfrom
flattening
Open

Include flattening algorithm#113
samwaseda wants to merge 22 commits intomainfrom
flattening

Conversation

@samwaseda
Copy link
Member

Now I included the algorithm to flatten nested workflows:

wf_dict = example_workflow.serialize_workflow()
wf_dict["inputs"] = {...} # The input parameters have to be set somehow
G = fwf.get_workflow_graph(wf_dict)
wf_dict_flat = fwf.graph_to_wf_dict(G, flatten=True)

This gives you a flat representation instead of a nested workflow (if example_workflow is nested). I included one very simple test in the unit tests for a proof of concept, but I think really interesting will be when control flows are added (which will be hopefully stacked PRs)

@github-actions
Copy link

github-actions bot commented Feb 1, 2026

Binder 👈 Launch a binder notebook on branch pyiron/flowrep/flattening

@codecov
Copy link

codecov bot commented Feb 1, 2026

Codecov Report

❌ Patch coverage is 94.11765% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.82%. Comparing base (ba60397) to head (fa07a19).
⚠️ Report is 38 commits behind head on main.

Files with missing lines Patch % Lines
flowrep/workflow.py 94.11% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #113      +/-   ##
==========================================
- Coverage   98.95%   98.82%   -0.13%     
==========================================
  Files          27       27              
  Lines        1908     1965      +57     
==========================================
+ Hits         1888     1942      +54     
- Misses         20       23       +3     

☔ View full report in Codecov by Sentry.
📢 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.

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.

1 participant