-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement incremental graph layouts #8308
Merged
Merged
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7f4d21f
Create an example of a larger time-varying graph
grtlr bda5938
Merge branch 'grtlr/time-varying-graph-layout' into grtlr/butterfly-e…
grtlr 72103ae
Implement incremental layouts (closes #8282)
grtlr 6ee3b4e
Update tests/python/release_checklist/check_graph_time_layout.py
grtlr ac26588
improve view property ui methods (#8305)
Wumpf 35af461
Update changelog for 0.20.3 (#8310)
jprochazk bbc845c
Bump `[email protected]` to `0.15.1` to fix vuln (#8315)
grtlr 6dc510e
Visually differentiate implicit nodes in graph view (#8313)
grtlr d4ba371
Improve check instructions
grtlr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
from __future__ import annotations | ||
|
||
import os | ||
import random | ||
from argparse import Namespace | ||
from uuid import uuid4 | ||
|
||
import rerun as rr | ||
import rerun.blueprint as rrb | ||
|
||
README = """\ | ||
# Graph view | ||
|
||
Please check the following: | ||
* Run the graph view in an endless loop and see if how it looks good (TM). | ||
grtlr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* Try scrubbing the timeline to see how the graph layout changes over time. | ||
grtlr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
""" | ||
|
||
|
||
def log_readme() -> None: | ||
rr.log("readme", rr.TextDocument(README, media_type=rr.MediaType.MARKDOWN), static=True) | ||
|
||
|
||
def log_graphs() -> None: | ||
nodes = ["root"] | ||
edges = [] | ||
|
||
# Randomly add nodes and edges to the graph | ||
for i in range(50): | ||
existing = random.choice(nodes) | ||
new_node = str(i) | ||
nodes.append(new_node) | ||
edges.append((existing, new_node)) | ||
|
||
rr.set_time_sequence("frame", i) | ||
rr.log("graph", rr.GraphNodes(nodes, labels=nodes), rr.GraphEdges(edges, graph_type=rr.GraphType.Directed)) | ||
|
||
rr.send_blueprint( | ||
rrb.Blueprint( | ||
rrb.Grid( | ||
rrb.GraphView(origin="graph", name="Graph"), | ||
rrb.TextDocumentView(origin="readme", name="Instructions"), | ||
) | ||
) | ||
) | ||
|
||
|
||
def run(args: Namespace) -> None: | ||
rr.script_setup(args, f"{os.path.basename(__file__)}", recording_id=uuid4()) | ||
|
||
log_readme() | ||
log_graphs() | ||
|
||
|
||
if __name__ == "__main__": | ||
import argparse | ||
|
||
parser = argparse.ArgumentParser(description="Interactive release checklist") | ||
rr.script_add_args(parser) | ||
args = parser.parse_args() | ||
run(args) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these two match arms look like they can be lumped together:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that's possible due to the
if
-guard on theSelf::InProgress
arm.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh ok. I didn't know there was such a restriction.