Skip to content

Commit

Permalink
Adjust workflow diagram in make_click_command()
Browse files Browse the repository at this point in the history
- Use left-to-right order.
- Add debug code to only display the step(s) to the target key(s).
  • Loading branch information
khaeru committed Nov 27, 2024
1 parent e300233 commit e83dc13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion message_ix_models/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,11 @@ def _func(context, go, truncate_step, target_step, **kwargs):

if not go:
path = context.get_local_path(f"{slug}-workflow.svg")
wf.visualize(str(path))
wf.visualize(
str(path),
# key=target_step, # DEBUG Uncomment to show only a subset of steps
rankdir="LR",
)
log.info(f"Workflow diagram written to {path}")
return

Expand Down

0 comments on commit e83dc13

Please sign in to comment.