Skip to content

docs: correct description of bg_off computation in BackgroundSparseMed - #59

Merged
paulmueller merged 2 commits into
DC-analysis:mainfrom
paulmueller-agent:docs-sparsemed-offset
Nov 5, 2026
Merged

paulmueller merged 2 commits into
DC-analysis:mainfrom
paulmueller-agent:docs-sparsemed-offset

Conversation

@paulmueller-agent

Copy link
Copy Markdown
Contributor

Found while documenting the API (#52).

The docstring of offset_correction (class and check_user_kwargs) said the offset is computed from the median of a 20px wide slice. The code has computed the difference between the mean brightness of the top 20 pixel rows of the frame and of the background image since the offset correction was introduced in 15160c6 (0.18.0); the code comments also say mean. Since changing the code would change bg_off (and thus the results), I corrected the docstring instead.

Impact / PPID: documentation only.

🤖 Generated with Claude Code

…eMed`

The docstring said that the offset is the median of a 20px wide slice.
Since the offset correction was introduced (0.18.0), the code has
computed the difference of the mean brightness of the top 20 pixel rows
in the frame and in the background image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.61%. Comparing base (849de88) to head (fbca0ab).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #59   +/-   ##
=======================================
  Coverage   87.61%   87.61%           
=======================================
  Files          63       63           
  Lines        4369     4369           
=======================================
  Hits         3828     3828           
  Misses        541      541           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paulmueller
paulmueller merged commit 531d662 into DC-analysis:main Nov 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants