Skip to content

Add tracksdata graph to motile TrackGraph conversion#305

Merged
JoOkuma merged 3 commits into
royerlab:mainfrom
JoOkuma:jookuma/motile-solver
Jun 16, 2026
Merged

Add tracksdata graph to motile TrackGraph conversion#305
JoOkuma merged 3 commits into
royerlab:mainfrom
JoOkuma:jookuma/motile-solver

Conversation

@JoOkuma

@JoOkuma JoOkuma commented Jun 15, 2026

Copy link
Copy Markdown
Member

Introduce to_motile_graph, which converts a tracksdata BaseGraph into a motile.TrackGraph, following the same networkx-building pattern as to_traccuracy_graph. Node and edge attributes are copied over so they can be used as motile costs, and each node keeps its frame (time) attribute, which motile requires.

Exposed as a tracksdata.functional function and as a convenience BaseGraph.to_motile_graph method. motile is added as an optional dependency (and to the test extras).

JoOkuma added 3 commits June 14, 2026 17:12
Introduce `to_motile_graph`, which converts a tracksdata `BaseGraph`
into a `motile.TrackGraph`, following the same networkx-building pattern
as `to_traccuracy_graph`. Node and edge attributes are copied over so
they can be used as motile costs, and each node keeps its frame (time)
attribute, which motile requires.

Exposed as a `tracksdata.functional` function and as a convenience
`BaseGraph.to_motile_graph` method. `motile` is added as an optional
dependency (and to the test extras).
…ver.to_motile_solver

The to_motile_graph docstring's 'See Also' pointed to
tracksdata.solvers.ILPSolver.to_motile_solver, which does not exist on
this branch. With mkdocs strict mode and check_crossrefs enabled, the
unresolved reference aborted the documentation build.
@JoOkuma JoOkuma merged commit 8aca7ba into royerlab:main Jun 16, 2026
7 checks passed
@JoOkuma JoOkuma deleted the jookuma/motile-solver branch June 16, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant