Skip to content

Commit

Permalink
Merge pull request #123 from funkelab/81-trackgraph-str
Browse files Browse the repository at this point in the history
Add a __str__ function to the TrackGraph with num nodes and edges
  • Loading branch information
cmalinmayor authored Sep 30, 2024
2 parents 91e2168 + c619b58 commit eb83bd2
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)"

0 comments on commit eb83bd2

Please sign in to comment.