Skip to content

Fix division by 0 warning#481

Merged
apaleyes merged 1 commit intomainfrom
andrei/warning
Feb 5, 2026
Merged

Fix division by 0 warning#481
apaleyes merged 1 commit intomainfrom
andrei/warning

Conversation

@apaleyes
Copy link
Collaborator

@apaleyes apaleyes commented Feb 5, 2026

Issue #, if available: n/a

Description of changes: Fixes non-consequential warning:

emukit/bayesian_optimization/acquisitions/local_penalization.py:112: RuntimeWarning: divide by zero encountered in divide
inv_distance = np.where(~np.isclose(distances, 0), 1 / distances, 0)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@apaleyes apaleyes requested a review from mmahsereci February 5, 2026 00:38
@apaleyes
Copy link
Collaborator Author

apaleyes commented Feb 5, 2026

@mmahsereci tagging you to ensure this PR is reviewed. but if for any reason you aren't able to review anymore, no worries! i'll give it a few days and merge. cheers!

Copy link
Contributor

@mmahsereci mmahsereci left a comment

Choose a reason for hiding this comment

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

LGTM!

@mmahsereci
Copy link
Contributor

@mmahsereci tagging you to ensure this PR is reviewed. but if for any reason you aren't able to review anymore, no worries! i'll give it a few days and merge. cheers!

still here :) thanks for tagging!

@apaleyes
Copy link
Collaborator Author

apaleyes commented Feb 5, 2026

yay! glad to know you are still around @mmahsereci

@apaleyes apaleyes merged commit 7cd414c into main Feb 5, 2026
9 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