Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests(unet_masking): Correct ids and add expected fail #1046

Conversation

ns-rse
Copy link
Collaborator

@ns-rse ns-rse commented Dec 10, 2024

  • Corrects the id of the parameterised tests for test_make_bounding_box_square() to reflect the row/col
    and whether they increase/decrease.
  • Adds a rectangular image with a large rectangular bbox that can not be squared and marks the test as a fail.

I recall, but can't find, that we added functionality to handle non-square scans (I think @SylviaWhittle wrote the code
to handle it) and so its possible that instances may arise where the bbox can't be squared.

Ideally we should add a try: ... except: to handle such cases but for now adding a test which is marked as expected to
fail should serve as an aide memoire that sometimes things won't work.

- Corrects the `id` of the parameterised tests for `test_make_bounding_box_square()` to reflect the `row`/`col`
  and whether they `increase`/`decrease`.
- Adds a rectangular image with a large rectangular `bbox` that can not be squared and marks the test as a fail.

I recall, but can't find, that we added functionality to handle non-square scans (I think @SylviaWhittle wrote the code
to handle it) and so its possible that instances may arise where the `bbox` can't be squared.

Ideally we should add a `try: ... except:` to handle such cases but for now adding a test which is marked as expected to
fail should serve as an _aide memoire_ that sometimes things won't work.
@MaxGamill-Sheffield MaxGamill-Sheffield merged commit 0625a55 into maxgamill-sheffield/unet-crop-fix Dec 11, 2024
10 checks passed
@MaxGamill-Sheffield MaxGamill-Sheffield deleted the ns-rse/enhance-bbox-test branch December 11, 2024 10:26
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