Skip to content

Commit be82f60

Browse files
committed
Appease circleci
1 parent 964191e commit be82f60

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/optimization/test_gingleator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_ginglator_finds_best_partition(four_by_five_grid_for_opt):
177177
):
178178
max_scores_sb[i] = gingles.best_score
179179

180-
assert max_scores_sb[-1] == 2
180+
assert max(max_scores_sb) == 2
181181

182182

183183
def test_count_num_opportunity_dists(four_by_five_grid_for_opt):

tests/optimization/test_single_metric.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_single_metric_sb_attains_min_quickly(four_by_five_grid_for_opt):
6262
):
6363
min_scores_sb[i] = optimizer.best_score
6464

65-
assert min_scores_sb[-1] == 11
65+
assert np.min(min_scores_sb) == 11
6666

6767

6868
def test_single_metric_tilted_sb_attains_min_quickly(four_by_five_grid_for_opt):
@@ -109,7 +109,7 @@ def test_single_metric_tilted_sb_attains_min_quickly(four_by_five_grid_for_opt):
109109
):
110110
min_scores_sb[i] = optimizer.best_score
111111

112-
assert min_scores_sb[-1] == 11
112+
assert np.min(min_scores_sb) == 11
113113

114114

115115
def test_single_metric_variable_len_sb_attains_min_quickly(four_by_five_grid_for_opt):
@@ -154,7 +154,7 @@ def test_single_metric_variable_len_sb_attains_min_quickly(four_by_five_grid_for
154154
):
155155
min_scores_sb[i] = optimizer.best_score
156156

157-
assert min_scores_sb[-1] == 11
157+
assert np.min(min_scores_sb) == 11
158158

159159

160160
# ========================
@@ -205,7 +205,7 @@ def test_single_metric_sa_jumpcycle_attains_min_quickly(four_by_five_grid_for_op
205205
):
206206
min_scores_anneal[i] = optimizer.best_score
207207

208-
assert min_scores_anneal[-1] == 11
208+
assert np.min(min_scores_anneal) == 11
209209

210210

211211
def test_single_metric_sa_lincycle_attains_min_quickly(four_by_five_grid_for_opt):
@@ -250,7 +250,7 @@ def test_single_metric_sa_lincycle_attains_min_quickly(four_by_five_grid_for_opt
250250
):
251251
min_scores_anneal[i] = optimizer.best_score
252252

253-
assert min_scores_anneal[-1] == 11
253+
assert np.min(min_scores_anneal) == 11
254254

255255

256256
def test_single_metric_sa_linear_jumpcycle_attains_min_quickly(
@@ -297,7 +297,7 @@ def test_single_metric_sa_linear_jumpcycle_attains_min_quickly(
297297
):
298298
min_scores_anneal[i] = optimizer.best_score
299299

300-
assert min_scores_anneal[-1] == 11
300+
assert np.min(min_scores_anneal) == 11
301301

302302

303303
def test_single_metric_sa_logitcycle_attains_min_quickly(four_by_five_grid_for_opt):
@@ -342,7 +342,7 @@ def test_single_metric_sa_logitcycle_attains_min_quickly(four_by_five_grid_for_o
342342
):
343343
min_scores_anneal[i] = optimizer.best_score
344344

345-
assert min_scores_anneal[-1] == 11
345+
assert np.min(min_scores_anneal) == 11
346346

347347

348348
def test_single_metric_sa_logit_jumpcycle_attains_min_quickly(
@@ -389,7 +389,7 @@ def test_single_metric_sa_logit_jumpcycle_attains_min_quickly(
389389
):
390390
min_scores_anneal[i] = optimizer.best_score
391391

392-
assert min_scores_anneal[-1] == 11
392+
assert np.min(min_scores_anneal) == 11
393393

394394

395395
# ===============
@@ -437,7 +437,7 @@ def test_single_metric_tilted_runs_attains_min_quickly_with_p_eq_0p1(
437437
):
438438
min_scores_tilt[i] = optimizer.best_score
439439

440-
assert min_scores_tilt[-1] == 11
440+
assert np.min(min_scores_tilt) == 11
441441

442442

443443
# ==========================

0 commit comments

Comments
 (0)