Skip to content
Snippets Groups Projects
Commit 041473c2 authored by Ivan Kondov's avatar Ivan Kondov
Browse files

Delete check_wflow.py

parent fd12b5b0
No related branches found
No related tags found
No related merge requests found
from fireworks.utilities.dagflow import DAGFlow
from fireworks import Workflow
import sys
assert len(sys.argv) >= 2
vmode = None
for arg in sys.argv:
if '--view' in arg:
vmode = arg.split('=')[1]
wf_file = sys.argv[-1]
dot_file = wf_file.split('.')[0] + '.dot'
workflow = Workflow.from_file(wf_file)
dag = DAGFlow.from_fireworks(workflow)
if vmode is not None:
dag.add_step_labels()
dag.to_dot(dot_file, view=vmode)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment