Skip to content

Conversation

@timtreis
Copy link
Member

IMPORTANT: Please search among the Pull requests before creating one.

Description

How has this been tested?

Closes

@timtreis timtreis linked an issue Sep 14, 2025 that may be closed by this pull request
@timtreis timtreis changed the title MVP for image QC Functions to QC histopathology images Sep 14, 2025
@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

❌ Patch coverage is 15.14630% with 493 lines in your changes missing coverage. Please review.
✅ Project coverage is 23.31%. Comparing base (b9d8aff) to head (5eebcf2).

Files with missing lines Patch % Lines
src/squidpy/experimental/im/_qc_sharpness.py 11.69% 234 Missing ⚠️
src/squidpy/experimental/im/_sharpness_metrics.py 19.71% 114 Missing ⚠️
src/squidpy/experimental/pl/_qc_sharpness.py 10.46% 77 Missing ⚠️
src/squidpy/experimental/im/_utils.py 21.42% 55 Missing ⚠️
src/squidpy/_utils.py 33.33% 6 Missing ⚠️
src/squidpy/datasets/_utils.py 0.00% 4 Missing ⚠️
src/squidpy/experimental/im/_detect_tissue.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@ ## main #1036 +/- ## ========================================== - Coverage 24.05% 23.31% -0.75%  ========================================== Files 43 46 +3 Lines 6380 6931 +551 Branches 1063 1152 +89 ========================================== + Hits 1535 1616 +81  - Misses 4828 5298 +470  Partials 17 17 
Files with missing lines Coverage Δ
src/squidpy/experimental/im/_detect_tissue.py 20.98% <40.00%> (-0.18%) ⬇️
src/squidpy/datasets/_utils.py 50.00% <0.00%> (-1.31%) ⬇️
src/squidpy/_utils.py 25.42% <33.33%> (-0.03%) ⬇️
src/squidpy/experimental/im/_utils.py 19.79% <21.42%> (+4.10%) ⬆️
src/squidpy/experimental/pl/_qc_sharpness.py 10.46% <10.46%> (ø)
src/squidpy/experimental/im/_sharpness_metrics.py 19.71% <19.71%> (ø)
src/squidpy/experimental/im/_qc_sharpness.py 11.69% <11.69%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
from ._utils import _flatten_channels, _get_element_data


class DETECT_TISSUE_METHOD(enum.Enum):
Copy link
Member

Choose a reason for hiding this comment

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

I just noticed this Enum. I think the Enum classes themselves are supposed to be in UpperCamelCase.

https://docs.python.org/3/howto/enum.html

Because Enums are used to represent constants, and to help avoid issues with name clashes between mixin-class methods/attributes and enum names, we strongly recommend using UPPER_CASE names for members, and will be using that style in our examples.

from ._utils import _flatten_channels, _get_element_data


class DETECT_TISSUE_METHOD(enum.Enum):
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
class DETECT_TISSUE_METHOD(enum.Enum):
class DetectTissueMethod(enum.Enum):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants