Skip to content

Conversation

@AnniekStok
Copy link
Collaborator

Proposed Change

Option to display canvas-aligned orthogonal views. All interactive functionality (painting, selecting nodes, changing tool modes, undo/redo) should sync between the different viewers.

motile_tracker_ortho_views

Checklist

Go through these things before merge. Actions should run automatically to test them, but for information on how to run locally, see CONTRIBUTING.md.

  • I have added tests that prove that my feature works in various situations or tests the bugfix (if applicable).
  • I have checked that the tests pass and I maintained or improved test coverage (if applicable).
  • I have written docstrings and checked that they render correctly in the documentation build.

Further Comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@AnniekStok AnniekStok requested a review from cmalinmayor August 15, 2025 12:45
res_layer.metadata["viewer_name"] = name
return res_layer

# do not let ruff move these import statements!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put in a # noqa on these lines so it happens automatically

copied_layer.mouse_drag_callbacks.append(click_wrapper)

# Bind keys to original layer TracksViewer
copied_layer.bind_key("q")(orig_layer.tracks_viewer.toggle_display_mode)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make these variables on the tracks controller so at least we have them defined in one place (or make an issue for it and we can do it later)

pyproject.toml Outdated
"fonticon-fontawesome6",
"zarr<3",
"imagecodecs", # for unzipping sample data
"napari-orthogonal-views @ git+https://github.com/AnniekStok/napari-orthogonal-views.git@main"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make a tag/release on your github so we can point to a specific named instead of a moving branch.

Copy link
Contributor

@cmalinmayor cmalinmayor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important changes: depending on a specific tag. testing drawing in 3D in 2D data (and maybe just say no).

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.

3 participants