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

Bug fixes, initial work to support OpenSlide 4.0.0, improve type checking #185

Merged
merged 11 commits into from
Nov 10, 2023

Conversation

jonasteuwen
Copy link
Contributor

@jonasteuwen jonasteuwen commented Oct 22, 2023

A few changes:

  • OpenSlide 4.0.0 adds ICC profiles (see Support OpenSlide 4.0 #184, OpenSlide attaches ICC profiles #182); this is now included in SlideImage with the OPENSLIDE backend.
  • openslide-python is updated
  • Fix mpp_x <-> mpp_y problem also addressed in mpp issues and requirements #183 (Closes mpp issues and requirements #183)
  • Change some **kwargs to parameters to enhance ability to type check
  • Revert to using OpenSlide as default backend in the SlideImage. This is because currently it might be difficult to link libvips to openslide 4.0.0, and therefore it's tricky to test the ICC profile for pyvips.
  • Fix a minor bug in OpenSlideSlide which crashed when no mpp value was found (now it will raise a UnsupportedSlideError)

To be able to solve #167 additional work needs to be performed in the dataset classes and in the SlideImage class

@jonasteuwen jonasteuwen self-assigned this Oct 22, 2023
@jonasteuwen jonasteuwen added this to the v0.4 milestone Oct 22, 2023
@jonasteuwen jonasteuwen marked this pull request as draft October 22, 2023 15:10
@jonasteuwen jonasteuwen marked this pull request as ready for review October 22, 2023 18:26
@jonasteuwen jonasteuwen changed the title Allow to pick the mpp level closest to an actual level in the pyramid Bug fixes, initial work to support OpenSlide 4.0.0, improve type checking Oct 25, 2023
Copy link

@sinberlin2 sinberlin2 left a comment

Choose a reason for hiding this comment

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

The application of the ICC color profile works, and there are no errors using openslide 4.0 so far. The rest are minor changes where I did not see any problem!

@jonasteuwen jonasteuwen merged commit 975264b into main Nov 10, 2023
@jonasteuwen jonasteuwen deleted the feature/no-resample branch November 10, 2023 17:57
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.

2 participants