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

Allow for the use of @flows with Jobflow #1061

Open
Andrew-S-Rosen opened this issue Oct 11, 2023 · 1 comment
Open

Allow for the use of @flows with Jobflow #1061

Andrew-S-Rosen opened this issue Oct 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Andrew-S-Rosen
Copy link
Member

Andrew-S-Rosen commented Oct 11, 2023

What new feature would you like to see?

Hinges on two things:

@Andrew-S-Rosen Andrew-S-Rosen added the enhancement New feature or request label Oct 11, 2023
@Andrew-S-Rosen Andrew-S-Rosen closed this as not planned Won't fix, can't repro, duplicate, stale Nov 19, 2023
@Andrew-S-Rosen
Copy link
Member Author

Andrew-S-Rosen commented Aug 16, 2024

We might be able to use Covalent as an intermediary to get the Jobflow Flow since they have a nice compiler for the Lattice objects.

import covalent as ct
import json

@ct.electron
def add(a, b):
    return a+b

@ct.lattice
def my_flow(a, b):
    return add(a, b)

my_flow.build_graph(1, 2)

json.loads(my_flow.transport_graph.serialize_to_json())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant