Remove stale ndarray sorting warnings by ReinerBRO · Pull Request #603 · bayesian-optimization/BayesianOptimization · GitHub
Skip to content

Remove stale ndarray sorting warnings#603

Merged
t-muser merged 1 commit intobayesian-optimization:masterfrom
ReinerBRO:remove-array-sorting-warning
Apr 1, 2026
Merged

Remove stale ndarray sorting warnings#603
t-muser merged 1 commit intobayesian-optimization:masterfrom
ReinerBRO:remove-array-sorting-warning

Conversation

@ReinerBRO
Copy link
Copy Markdown
Contributor

@ReinerBRO ReinerBRO commented Mar 26, 2026

Remove the old ndarray sorting warning now that pbounds order is the canonical order. Add regression tests for register/probe with ndarray inputs.

Summary by CodeRabbit

  • Bug Fixes

    • Removed unnecessary warnings when registering or probing with NumPy arrays.
  • Tests

    • Added tests verifying NumPy array inputs work correctly and parameters properly map to bounds order.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 26, 2026

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.34%. Comparing base (6868d3a) to head (ce1788d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #603      +/-   ##
==========================================
+ Coverage   97.78%   98.34%   +0.55%     
==========================================
  Files          10       10              
  Lines        1221     1210      -11     
==========================================
- Hits         1194     1190       -4     
+ Misses         27       20       -7     

☔ View full report in Codecov by Sentry.
📢 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.

@t-muser
Copy link
Copy Markdown
Member

t-muser commented Mar 29, 2026

Hey, thanks for the PR!

The warning is not stale (as in outdated), it alerts users that the behaviour has changed from older versions. However, I think it may still be time to remove it, it's been like this for ~9 months now.

Will merge within a few days, unless there are objections :)

@t-muser
Copy link
Copy Markdown
Member

t-muser commented Apr 1, 2026

@t-muser t-muser merged commit d5126dc into bayesian-optimization:master Apr 1, 2026
16 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