-
-
Notifications
You must be signed in to change notification settings - Fork 62
Support fetching exact MPP resolutions #301
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #301 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 17 17
Lines 1331 1407 +76
Branches 134 152 +18
=========================================
+ Hits 1331 1407 +76
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I ran out of time. I'll take another look once these comments are addressed 😄
@ernestoarbitrio Thanks, all addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second iteration: some minor comments + 1 major concern. Please let me know if my comments are clear and if you have enough info to go through those. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I think this should be the last iteration :D
34ef8c5
to
f070710
Compare
This pull request introduces 1 alert when merging 7c8c93b into 6625b40 - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very last review round ;p
f72e786
to
340f0cf
Compare
…edLargeImage exception to use with slide whenever large_image may be needed. This is also a bug fix, because it prevents ignoring the exception when the catch-call except ValueError is invoked in like 503 in GridTiler
… tries slide.extract_tile, only catch the specific TileSizeOrCoordinatesError class.
…sted tile_size. Testing not yet complete
…specting_given_tile_size and test_raise_error_if_mpp_and_discordant_tile_size.
Co-authored-by: Alessia Marcolini <98marcolini@gmail.com>
8459b01
to
30c19d4
Compare
This PR supports fetching exact micron-per-pixel (MPP) resolutions from the WSI using large_image as an optional dependency. The rationale here is that different WSIs have different encodings for the internal levels and different scan resolutions.
large_image
handles this by parsing the internal metadata for a wide range of formats beyond those supported by openslide and interpolating between levels when needed to fetch exact MPP resolutions independent of the slide format, scan resolution, manufacturer etc.If the user doesn't have
large_image
installed but asks for an mpp resolution, they are prompted to install it.@alessiamarcolini @ernestoarbitrio @nicolebussola This is the key feature from the forked version. I added tests for (hopefully) everything, but they are skipped if
large_image
is not installed. So if you'd like all the tests to run to maintain coverage, I suggest adding thelarge_image
installation to test environment.Description
Types of Changes
Checklist