Skip to content
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

Add a __str__ function to the TrackGraph with num nodes and edges #123

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions motile/track_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,6 @@
self.t_end = max(frames) + 1

self._graph_changed = False

def __str__(self) -> str:
return f"TrackGraph({len(self.nodes)} nodes, {len(self.edges)} edges)"

Check warning on line 277 in motile/track_graph.py

View check run for this annotation

Codecov / codecov/patch

motile/track_graph.py#L277

Added line #L277 was not covered by tests
Loading