Skip to content

Commit 41f608c

Browse files
committed
Black and isort
1 parent 3a74471 commit 41f608c

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

libensemble/tests/regression_tests/test_evaluate_mixed_sample.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
samp = 1000
3333
n = 8
3434

35-
H0 = np.zeros(samp, dtype=[("x", float, n), ("f", float), ("sim_id", int), ("sim_started", bool), ("sim_ended", bool)])
35+
H0 = np.zeros(
36+
samp, dtype=[("x", float, n), ("f", float), ("sim_id", int), ("sim_started", bool), ("sim_ended", bool)]
37+
)
3638
np.random.seed(0)
3739
H0["x"] = gen_borehole_input(samp)
3840
for i in range(500):

libensemble/tests/regression_tests/test_persistent_aposmm_with_grad.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@
121121

122122
if is_manager:
123123
assert persis_info[1].get("run_order"), "Run_order should have been given back"
124-
assert len(persis_info[1]["run_order"]) >= gen_specs["user"]["stop_after_k_minima"], "This test should have many runs started."
124+
assert (
125+
len(persis_info[1]["run_order"]) >= gen_specs["user"]["stop_after_k_minima"]
126+
), "This test should have many runs started."
125127
assert len(H) < exit_criteria["sim_max"], "Test should have stopped early due to 'stop_after_k_minima'"
126128

127129
print("[Manager]:", H[np.where(H["local_min"])]["x"])

libensemble/tests/regression_tests/test_persistent_surmise_killsims.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@
129129
exit_criteria = {"sim_max": max_evals}
130130

131131
# Perform the run
132-
H, persis_info, flag = libE(sim_specs, gen_specs, exit_criteria, persis_info, alloc_specs=alloc_specs, libE_specs=libE_specs)
132+
H, persis_info, flag = libE(
133+
sim_specs, gen_specs, exit_criteria, persis_info, alloc_specs=alloc_specs, libE_specs=libE_specs
134+
)
133135

134136
if is_manager:
135137
print("Cancelled sims", H["sim_id"][H["cancel_requested"]])

0 commit comments

Comments
 (0)