Skip to content

Commit e7591b6

Browse files
committed
undo inconsequential tiny changes to allocs
1 parent 550ca1f commit e7591b6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

libensemble/alloc_funcs/start_only_persistent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def only_persistent_gens(W, H, sim_specs, gen_specs, alloc_specs, persis_info, l
5151
if libE_info["sim_max_given"] or not libE_info["any_idle_workers"]:
5252
return {}, persis_info
5353

54+
# Initialize alloc_specs["user"] as user.
5455
user = alloc_specs.get("user", {})
5556
manage_resources = libE_info["use_resource_sets"]
5657

libensemble/alloc_funcs/start_persistent_local_opt_gens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def start_persistent_local_opt_gens(W, H, sim_specs, gen_specs, alloc_specs, per
9090
break
9191
points_to_evaluate[sim_ids_to_send] = False
9292

93-
elif gen_count == 0 and not np.any(np.logical_and((W["active"] == EVAL_GEN_TAG), (W["persis_state"] == 0))):
93+
elif gen_count == 0 and not np.any(np.logical_and(W["active"] == EVAL_GEN_TAG, W["persis_state"] == 0)):
9494
# Finally, generate points since there is nothing else to do (no resource sets req.)
9595
Work[wid] = support.gen_work(wid, gen_specs.get("in", []), [], persis_info[wid], rset_team=[])
9696
gen_count += 1

0 commit comments

Comments
 (0)