Skip to content

Commit

Permalink
Merge a45bb54 into 0254639
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlarson1 committed Apr 30, 2020
2 parents 0254639 + a45bb54 commit b4260f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions libensemble/libE_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ def term_test_stop_val(self, stop_val):
"""Checks against stop value criterion"""
key, val = stop_val
H = self.hist.H
idx = self.hist.index
return np.any(filter_nans(H[key][:idx]) <= val)
return np.any(filter_nans(H[key][H['returned']]) <= val)

def term_test(self, logged=True):
"""Checks termination criteria"""
Expand Down
1 change: 1 addition & 0 deletions libensemble/tests/unit_tests/test_manager_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def test_term_test_2():
#
# Terminate because we've found a good 'g' value
hist.H['g'][0] = -1
hist.H['returned'][0] = True
hist.index = 1
hist.given_count = 1
assert mgr.term_test()
Expand Down

0 comments on commit b4260f0

Please sign in to comment.