Open xperrylinn opened 1 year ago
Dear @xperrylinn ,
This is due to how jobflow is architectured and it can indeed be confusing. The graph of the flow is constructed from the OutputReferences that you set in the jobs:flows (input_set=energy_minimization_job.output["doc_store"].calculation_output.output_set in your script). Then when you run locally, these output references are resolved automatically so they actually do not exist anymore. When you try to draw the graph, it does not see any OutputReference. If you try to draw the graph before running it, you will see the edge.
This is indeed something that is a bit problematic (even though the flows are working) as one may want to look at the flows after they have run (not just before). We are discussing options to remove this drawback.
Best,
Understood! Thank you, @davidwaroquiers.
Describe the bug A clear and concise description of what the bug is.
Calling
flow.draw_graph(figsize=(8, 8)).show()
draws graph images with no edges. It appears to be related to how I'm using the API because when I run the code in the tutorial notebook it draws the graph with no problem. Below is a screen capture of an example. I'm usingjoblow==0.1.11
This is the code that I've written to produce this:
I tried searching through the previous issues to see if others have encountered this, but I didn't find anything. Any tips on what might be happening here?
To Reproduce Steps to reproduce the behavior:
create a conda env with the following spec:
Provide any example files that are needed to reproduce the error, especially if the bug pertains to parsing of a file.
Expected behavior A clear and concise description of what you expected to happen.
Edges between nodes in the graph drawing.
Screenshots If applicable, add screenshots to help explain your problem.
Included above in description.