Skip to content

Resample fix#1438

Merged
carsen-stringer merged 3 commits intomainfrom
resample_fix
Apr 30, 2026
Merged

Resample fix#1438
carsen-stringer merged 3 commits intomainfrom
resample_fix

Conversation

@mrariden
Copy link
Copy Markdown
Collaborator

@jeskowagner found that masks weren't being correctly resized and proposed a fix in #1434. This fix is preferred to be more consisted with the CP3 code.

Added a test that fails to highlight the issue, and adding the fix causes the test to pass.

Comment thread cellpose/dynamics.py

if resize is not None:
dynamics_logger.warning("Resizing is deprecated in v4.0.1+")
if len(resize) == 2:
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This block was removed when I purged all resample/rescale code from CP4. It's verbatim cp3, and now actually does what the function name implies.

@mrariden
Copy link
Copy Markdown
Collaborator Author

mrariden commented Apr 28, 2026

Passing tests:

  • Ubuntu
  • Mac
  • GH Workflows

@carsen-stringer carsen-stringer merged commit 0577880 into main Apr 30, 2026
7 checks passed
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.

2 participants