Skip to content

add conversion level - magnification factor, when possible#319

Merged
nicolebussola merged 10 commits into
masterfrom
magnification_factor
Sep 22, 2021
Merged

add conversion level - magnification factor, when possible#319
nicolebussola merged 10 commits into
masterfrom
magnification_factor

Conversation

@nicolebussola

Copy link
Copy Markdown
Collaborator

Address Issue #294

@nicolebussola nicolebussola linked an issue Sep 20, 2021 that may be closed by this pull request

@ernestoarbitrio ernestoarbitrio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

per comments

Comment thread src/histolab/slide.py
Comment thread src/histolab/slide.py Outdated
Comment thread src/histolab/exceptions.py Outdated
Comment thread src/histolab/slide.py
@codecov

codecov Bot commented Sep 20, 2021

Copy link
Copy Markdown

Codecov Report

Merging #319 (a7ca2f0) into master (7bbdefb) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #319   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        17           
  Lines         1294      1307   +13     
  Branches       124       127    +3     
=========================================
+ Hits          1294      1307   +13     
Impacted Files Coverage Δ
src/histolab/exceptions.py 100.00% <100.00%> (ø)
src/histolab/slide.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7bbdefb...a7ca2f0. Read the comment docs.

Comment thread docs/quickstart.rst Outdated
Comment thread src/histolab/slide.py Outdated
Comment thread src/histolab/slide.py Outdated
Comment thread src/histolab/slide.py Outdated
Comment thread src/histolab/slide.py Outdated
Comment thread src/histolab/slide.py Outdated
Comment thread src/histolab/slide.py Outdated
Comment thread src/histolab/slide.py Outdated
Comment thread tests/unit/test_slide.py
Comment thread tests/unit/test_slide.py Outdated

@alessiamarcolini alessiamarcolini left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Now the tests that are included are ok.

However, since the integration test it_knows_its_magnification_factors is basically run only on CI, I would add:

  • a test case for that method to use the local cmu-1-small-region.svs
  • two unit tests using a fake svs and mocking properties property to include or not "openslide.objective-power" and "f"openslide.level[{level}].downsample" to better control the flow. Let's try to have 100% coverage on the new modifications without the help of the integration tests

@alessiamarcolini alessiamarcolini added the enhancement New feature or request label Sep 20, 2021
Comment thread src/histolab/slide.py Outdated
Comment thread tests/unit/test_slide.py
Comment thread tests/unit/test_slide.py Outdated

@alessiamarcolini alessiamarcolini left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@alessiamarcolini alessiamarcolini added this to the 0.2.7 milestone Sep 22, 2021

@ernestoarbitrio ernestoarbitrio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM but let's see if you can address the minor comment I just wrote

Comment thread src/histolab/slide.py Outdated

@ernestoarbitrio ernestoarbitrio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM well done 👯

@nicolebussola nicolebussola merged commit 06bd9cf into master Sep 22, 2021
@nicolebussola nicolebussola deleted the magnification_factor branch September 22, 2021 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add conversion level-magnification

3 participants