Skip to content

Commit

Permalink
Not setting array with sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlarson1 committed Jun 28, 2023
1 parent 8f66a4f commit 4d44821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libensemble/gen_funcs/persistent_fd_param_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def fd_param_finder(H, persis_info, gen_specs, libE_info):
for k in range(nf + 1):
if k != nf / 2:
logical_conds = (calc_in["x_ind"] == i, calc_in["f_ind"] == j, calc_in["n_ind"] == k)
Fhist0[i, j, k] = calc_in["f_val"][np.logical_and.reduce(logical_conds)]
Fhist0[i, j, k] = calc_in["f_val"][np.logical_and.reduce(logical_conds)][0]

# Compute noise for (i, j):
# [Fnoise(i, j), ~, inform(i, j)] = ECnoise(nf-1, Fhist0(i, j, 2:nf));
Expand Down

0 comments on commit 4d44821

Please sign in to comment.