Skip to content

Commit 8d7f077

Browse files
committed
fixes
1 parent 8851447 commit 8d7f077

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

libensemble/alloc_funcs/fast_alloc_and_pausing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def give_sim_work_first(W, H, sim_specs, gen_specs, alloc_specs, persis_info, li
3535
gen_count = support.count_gens()
3636

3737
if gen_specs["user"].get("single_component_at_a_time"):
38-
assert (
39-
alloc_specs["user"]["batch_mode"] or gen_specs["batch_mode"]
38+
assert alloc_specs["user"].get("batch_mode", False) or gen_specs.get(
39+
"batch_mode", False
4040
), "Must be in batch mode when using 'single_component_at_a_time'"
4141
if len(H) != persis_info["H_len"]:
4242
# Something new is in the history.

libensemble/tests/functionality_tests/test_mpi_gpu_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@
8888
"out": [("priority", float), ("resource_sets", int), ("x", float, n)],
8989
"give_all_with_same_priority": False,
9090
"async_return": False,
91+
"initial_batch_size": nworkers - 1,
9192
"user": {
92-
"initial_batch_size": nworkers - 1,
9393
"max_resource_sets": nworkers - 1, # Any sim created can req. 1 worker up to all.
9494
"lb": np.array([-3, -2]),
9595
"ub": np.array([3, 2]),

pixi.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)