Skip to content

fix: rename misspelled instace_exists and KernelDensityEstimationForEmtpyArrayWarning - #420

Merged
paulmueller merged 1 commit into
DC-analysis:mainfrom
paulmueller-agent:fix/rename-misspelled-names
Nov 19, 2026
Merged

paulmueller merged 1 commit into
DC-analysis:mainfrom
paulmueller-agent:fix/rename-misspelled-names

Conversation

@paulmueller-agent

Copy link
Copy Markdown
Contributor

Renames two misspelled public names and keeps the old names as deprecated aliases:

  • PolygonFilter.instace_exists → PolygonFilter.instance_exists; instace_exists issues a DeprecationWarning and calls instance_exists.
  • dclab.kde.binning.KernelDensityEstimationForEmtpyArrayWarning → KernelDensityEstimationForEmptyArrayWarning; accessing the old name issues a DeprecationWarning (module-level __getattr__) and returns the new class, so except/pytest.warns with the old name still catch the warning.

Tests: test_kde.py uses the new name; new tests test_kde_empty_array_warning_deprecated_alias and test_instance_exists.

🤖 Generated with Claude Code

…ityEstimationForEmtpyArrayWarning`

The old names are kept as deprecated aliases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paulmueller-agent
paulmueller-agent force-pushed the fix/rename-misspelled-names branch from ee7a06e to 5dbb7a4 Compare November 19, 2026 09:16
@paulmueller
paulmueller merged commit 3f88aab into DC-analysis:main Nov 19, 2026
3 of 4 checks passed
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.02%. Comparing base (a427522) to head (5dbb7a4).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #420      +/-   ##
==========================================
+ Coverage   93.00%   93.02%   +0.01%     
==========================================
  Files         124      124              
  Lines        9727     9736       +9     
==========================================
+ Hits         9047     9057      +10     
+ Misses        680      679       -1     

☔ 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.

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