We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4e4f9d commit 37b6ab4Copy full SHA for 37b6ab4
tests/test_optimizer.py
@@ -91,10 +91,8 @@ def test_optimized_distances():
91
score_func = gecos.DefaultScoreFunction(
92
matrix, contrast=0, distance_formula="CIE76"
93
)
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]
+ ideal_distances = score_func._ideal_dist
+ a_to_b_ref, a_to_c_ref, b_to_c_ref = ideal_distances
98
99
np.random.seed(0)
100
space = gecos.ColorSpace()
0 commit comments