Skip to content

Include flattening algorithm#113

Open
samwaseda wants to merge 21 commits intomainfrom
flattening
Open

Include flattening algorithm#113
samwaseda wants to merge 21 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.46%. Comparing base (1a11125) to head (b9e5645).

Files with missing lines Patch % Lines
flowrep/workflow.py 94.11% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #113      +/-   ##
==========================================
- Coverage   98.64%   98.46%   -0.18%     
==========================================
  Files          16       16              
  Lines        1250     1307      +57     
==========================================
+ Hits         1233     1287      +54     
- Misses         17       20       +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

Comments