Skip to content

Commit

Permalink
UltrackWidget: include z axis on 3d tracks (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-theodoro authored Nov 19, 2024
1 parent 062a93e commit ff3bf24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "ultrack"
dynamic = ["version"]
description = "Large-scale multi-hypotheses cell tracking"
readme = "README.md"
license = ""
license = "BSD-3-Clause"
requires-python = ">=3.9,<3.13"
authors = [
{ name = "Jordao Bragantini", email = "[email protected]" },
Expand Down
5 changes: 4 additions & 1 deletion ultrack/widgets/ultrackwidget/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,11 @@ def run(
scale=detection.scale,
)

is_3d = segments.ndim == 4
dims = ["z", "y", "x"] if is_3d else ["y", "x"]

yield Tracks(
data=tracks_df[["track_id", "t", "y", "x"]].values,
data=tracks_df[["track_id", "t", *dims]].values,
graph=graph,
name="Tracks",
scale=detection.scale[1:],
Expand Down

0 comments on commit ff3bf24

Please sign in to comment.