Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡 Packing and flattening graph chunks #128

Open
liamhuber opened this issue Dec 10, 2023 · 0 comments
Open

💡 Packing and flattening graph chunks #128

liamhuber opened this issue Dec 10, 2023 · 0 comments

Comments

@liamhuber
Copy link
Member

It would be nice to be able to take a subset of workflow nodes and package them automatically into a macro, like wf.package(wf.foo, wf.bar, wf.baz, inputs_map={"foo__finp": "widgets"}) or similar.

By the same token, it would be nice to be able to take a macro and unpack it so that its nodes belong directly to the macro's parent, e.g.

wf.nodes.labels 
>>> ["my_macro", "foo"]
wf.my_macro.nodes.labels
>>> ["a", "b", "c"]
wf.my_macro.flatten()
wf.nodes.labels
>>> ["a", "b", "c", "foo"]
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

No branches or pull requests

1 participant