Skip to content

Commit

Permalink
ZLTExp: Fix corner case
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbette committed Nov 16, 2024
1 parent f59a7fa commit 6583fbf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions npf/expdesign/zltexp.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ def __next__(self):

maybe_achievable_inputs = list(filter(lambda x : x <= max_r*self.margin, self.executable_values))
left_to_try = set(maybe_achievable_inputs).difference(vals_for_current.keys())
if len(left_to_try) == 0:
#There's no more points to try, we could never find a ZLT
self.current = None
return self.__next__()



#Step 3...K : try to get an acceptable rate. This step might be skipped if we got an acceptable rate already
if not acceptable_rates:
Expand Down

0 comments on commit 6583fbf

Please sign in to comment.