Skip to content

Commit

Permalink
Fixing aposmm sample pts
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlarson1 committed Oct 15, 2018
1 parent 517b6dd commit d4ac8c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libensemble/gen_funcs/aposmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ def aposmm_logic(H,persis_info,gen_specs,_):
v = sum(~H['local_pt']) # Number of sample points so far
x_new = gen_specs['sample_points'][v:v+samples_needed]
on_cube = False # We assume the points are on the original domain, not unit cube
persis_info = add_points_to_O(O, x_new, H, gen_specs, c_flag, persis_info, on_cube=on_cube)
if len(x_new):
persis_info = add_points_to_O(O, x_new, H, gen_specs, c_flag, persis_info, on_cube=on_cube)
samples_needed = samples_needed - len(x_new)

if samples_needed > 0:
Expand Down

0 comments on commit d4ac8c8

Please sign in to comment.