Skip to content

Commit e83dc13

Browse files
committed
Adjust workflow diagram in make_click_command()
- Use left-to-right order. - Add debug code to only display the step(s) to the target key(s).
1 parent e300233 commit e83dc13

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

message_ix_models/workflow.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,11 @@ def _func(context, go, truncate_step, target_step, **kwargs):
361361

362362
if not go:
363363
path = context.get_local_path(f"{slug}-workflow.svg")
364-
wf.visualize(str(path))
364+
wf.visualize(
365+
str(path),
366+
# key=target_step, # DEBUG Uncomment to show only a subset of steps
367+
rankdir="LR",
368+
)
365369
log.info(f"Workflow diagram written to {path}")
366370
return
367371

0 commit comments

Comments
 (0)