Skip to content

Commit

Permalink
Merge pull request #462 from lsst/tickets/DM-48395
Browse files Browse the repository at this point in the history
DM-48395: Document newly added support for Mermaid graphs
  • Loading branch information
enourbakhsh authored Feb 5, 2025
2 parents 704effe + de77370 commit e6d3d59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/changes/DM-46503.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added Mermaid for pipeline and quantum graph visualization with tools for documentation/presentation purposes.
4 changes: 4 additions & 0 deletions python/lsst/pipe/base/mermaid_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def _makeDatasetNode(dsRef: DatasetRef, allDatasetRefs: dict[str, str], file: An
def graph2mermaid(qgraph: QuantumGraph, file: Any) -> None:
"""Convert QuantumGraph into a Mermaid flowchart (top-down).
This method is mostly for documentation/presentation purposes.
Parameters
----------
qgraph : `~lsst.pipe.base.QuantumGraph`
Expand Down Expand Up @@ -301,6 +303,8 @@ def pipeline2mermaid(
This function produces a Mermaid flowchart, representing tasks and their
inputs/outputs as dataset nodes. It uses a top-down layout.
This method is mostly for documentation/presentation purposes.
Parameters
----------
pipeline : Pipeline or Iterable[TaskDef]
Expand Down

0 comments on commit e6d3d59

Please sign in to comment.