Skip to content

Commit de1b3c3

Browse files
committed
linelength
1 parent 5caf4e3 commit de1b3c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

libensemble/tests/unit_tests/test_aposmm_starting_point_finder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def setup_history_and_find_rk(n_s, num_to_start, lb, ub, f_vals, x_points):
5151
H[i]["local_pt"] = False
5252
H[i]["sim_ended"] = True # Ensure point is considered by distance function
5353

54-
local_H = initialize_APOSMM(H, {"lb": lb, "ub": ub, "initial_sample_size": n_s, "localopt_method": None}, {"comm": None})[-1]
54+
user_specs = {"lb": lb, "ub": ub, "initial_sample_size": n_s, "localopt_method": None}
55+
local_H = initialize_APOSMM(H, user_specs, {"comm": None})[-1]
5556
local_H = local_H[:n_s] # Use only the required number of entries
5657

5758
update_history_dist(local_H, n)
@@ -101,7 +102,7 @@ def setup_history_and_find_rk(n_s, num_to_start, lb, ub, f_vals, x_points):
101102
# Call the history setup and bisection function
102103
H, rk_final, inds_to_start = setup_history_and_find_rk(num_samples, num_to_start, lb, ub, f_vals, x_points)
103104

104-
assert len(inds_to_start) == num_to_start, f"Didn't find correct number of starting points. Found {len(inds_to_start)} instead of {num_to_start}"
105+
assert len(inds_to_start) == num_to_start, f"Found {len(inds_to_start)} starting points instead of {num_to_start}"
105106

106107
# Output results
107108
print(f"Chosen r_k: {rk_final:.6f}")

0 commit comments

Comments
 (0)