Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 52175f0

Browse filesBrowse files
committed
fix bug where we receive more points than we asked for
1 parent b4a4814 commit 52175f0
Copy full SHA for 52175f0

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎adaptive/learner/new_learnerND.py

Copy file name to clipboardExpand all lines: adaptive/learner/new_learnerND.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ def ask(self, n, tell_pending=True):
242242
for x in self.boundary_points
243243
if x not in self.data and x not in self.pending_points
244244
]
245+
# Make sure we don't give more points than asked for
246+
points = points[:n]
245247
# Infinite priority so that the boundary points are prioritized
246248
point_priorities = [math.inf] * len(points)
247249
if tell_pending:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.