Skip to content

Commit 37b6ab4

Browse files
author
Patrick Kunzmann
committed
Adapt test
1 parent e4e4f9d commit 37b6ab4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_optimizer.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,8 @@ def test_optimized_distances():
9191
score_func = gecos.DefaultScoreFunction(
9292
matrix, contrast=0, distance_formula="CIE76"
9393
)
94-
distance_matrix = score_func._matrix
95-
a_to_b_ref = distance_matrix[1,0]
96-
a_to_c_ref = distance_matrix[2,0]
97-
b_to_c_ref = distance_matrix[2,1]
94+
ideal_distances = score_func._ideal_dist
95+
a_to_b_ref, a_to_c_ref, b_to_c_ref = ideal_distances
9896

9997
np.random.seed(0)
10098
space = gecos.ColorSpace()

0 commit comments

Comments
 (0)