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

Fix annotation order of WsiAnnotations when sorting is None #215

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

BPdeRooij
Copy link
Contributor

This PR fixes #{214} by removing the sorting of available_labels.

@BPdeRooij BPdeRooij linked an issue Jan 8, 2024 that may be closed by this pull request
@github-actions github-actions bot added the python label Jan 8, 2024
@jonasteuwen
Copy link
Contributor

@BPdeRooij Could you move this function to the respective functions that do use area sorting? That way the current behavior would not change. Also mypy seems to fail.

@BPdeRooij
Copy link
Contributor Author

I believe I addressed your comment with this commit. Mypy was failing because of the new type hinting of OpenCV version 4.9.0.
I ensured that current behavior does not change by sorting available_labels whenever AnnotationSorting is not None.

Copy link
Contributor

@jonasteuwen jonasteuwen left a comment

Choose a reason for hiding this comment

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

LGTM

@jonasteuwen jonasteuwen merged commit 3109cfb into main Jan 18, 2024
8 checks passed
@jonasteuwen jonasteuwen deleted the bug/remove-available_labels-sorting-wsiannotations branch January 18, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unwanted label sorting in WsiAnnotations.
2 participants