Skip to content

Commit

Permalink
Add a __str__ function to the TrackGraph with num nodes and edges
Browse files Browse the repository at this point in the history
  • Loading branch information
cmalinmayor committed Sep 26, 2024
1 parent f6c9cba commit c619b58
Showing 1 changed file with 3 additions and 0 deletions.
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 @@ def _update_metadata(self) -> None:
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

0 comments on commit c619b58

Please sign in to comment.