Skip to content

Commit eb83bd2

Browse files
authored
Merge pull request #123 from funkelab/81-trackgraph-str
Add a __str__ function to the TrackGraph with num nodes and edges
2 parents 91e2168 + c619b58 commit eb83bd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

motile/track_graph.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,3 +272,6 @@ def _update_metadata(self) -> None:
272272
self.t_end = max(frames) + 1
273273

274274
self._graph_changed = False
275+
276+
def __str__(self) -> str:
277+
return f"TrackGraph({len(self.nodes)} nodes, {len(self.edges)} edges)"

0 commit comments

Comments
 (0)