Skip to content

Commit

Permalink
Add checklist item
Browse files Browse the repository at this point in the history
  • Loading branch information
grtlr committed Dec 17, 2024
1 parent b0adb95 commit 151061f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/python/release_checklist/check_graph_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@
* `graph` has directed edges, while `graph2` has undirected edges.
* `graph` and `graph2` are shown in two different viewers.
* There is a third viewer, `Both`, that shows both `graph` and `graph2` in the same viewer.
* The `coincident` viewer shows two nodes, `A` and `B`, at the same position
"""


def log_readme() -> None:
rr.log("readme", rr.TextDocument(README, media_type=rr.MediaType.MARKDOWN), static=True)


def log_coincident_nodes() -> None:
rr.log("coincident", rr.GraphNodes(["A", "B"], labels=["A", "B"], positions=[[-150, 0], [150, 0]]))


def log_graphs() -> None:
DATA = [
("A", None),
Expand Down Expand Up @@ -51,13 +56,19 @@ def run(args: Namespace) -> None:

log_readme()
log_graphs()
log_coincident_nodes()

rr.send_blueprint(
rrb.Blueprint(
rrb.Grid(
rrb.GraphView(origin="graph", name="Graph 1"),
rrb.GraphView(origin="graph2", name="Graph 2"),
rrb.GraphView(name="Both", contents=["/graph", "/graph2"]),
rrb.GraphView(
origin="coincident",
name="Coincident nodes",
overrides={"coincident": [rr.components.Position2D([0, 0])]},
),
rrb.TextDocumentView(origin="readme", name="Instructions"),
)
)
Expand Down

0 comments on commit 151061f

Please sign in to comment.