Skip to content

Conversation

@AlgoFoe
Copy link

@AlgoFoe AlgoFoe commented Jan 1, 2026

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?

  • When using anisotropic voxel sizes in napari, points created by the cellfinder napari plugin (like cell candidates and classified cells) were not inheriting the image scale, causing the detected points to be misaligned with the image.

What does this PR do?

  • This PR ensures that points created by the napari plugin inherit the image scale.

References

How has this PR been tested?

  • It was tested locally in napari using anisotropically scaled image layers. Points added via the cellfinder plugin now align correctly with the image.

Is this a breaking change?

  • No, this change only affects the visualization of points in napari.

Does this PR require an update to the documentation?

  • No, this fixes a bug in existing behavior.

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality (unit & integration)
  • The documentation has been updated to reflect any changes
  • The code has been formatted with pre-commit

@AlgoFoe
Copy link
Author

AlgoFoe commented Jan 7, 2026

Hey @adamltyson! Checking in on this PR, would appreciate a review when you’re free.

@adamltyson adamltyson self-requested a review January 8, 2026 14:16
@adamltyson
Copy link
Member

Hi @AlgoFoe, this works nicely thank you! Would you be able to add a simple test? e.g. in test_add_classified_layers?

@AlgoFoe
Copy link
Author

AlgoFoe commented Jan 9, 2026

Hi @AlgoFoe, this works nicely thank you! Would you be able to add a simple test? e.g. in test_add_classified_layers?

Thanks @adamltyson! Yep, will add a small test for this and update shortly

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.

[BUG] Cell candidates do not scale properly in napari viewer

2 participants