[interpolatable] Another fixup
This commit is contained in:
parent
25704bfe00
commit
f99774acf0
@ -620,6 +620,7 @@ def test_gen(
|
|||||||
first_cost = costs[0]
|
first_cost = costs[0]
|
||||||
|
|
||||||
if min_cost < first_cost * tolerance:
|
if min_cost < first_cost * tolerance:
|
||||||
|
this_tolerance = min_cost / first_cost
|
||||||
# c0 is the first isomorphism of the m0 master
|
# c0 is the first isomorphism of the m0 master
|
||||||
# contour1 is list of all isomorphisms of the m1 master
|
# contour1 is list of all isomorphisms of the m1 master
|
||||||
#
|
#
|
||||||
@ -707,7 +708,9 @@ def test_gen(
|
|||||||
)
|
)
|
||||||
first_cost = costs[0]
|
first_cost = costs[0]
|
||||||
# Only accept a perfect match
|
# Only accept a perfect match
|
||||||
if not (min_cost < first_cost * tolerance):
|
if min_cost < first_cost * tolerance:
|
||||||
|
this_tolerance = min_cost / first_cost
|
||||||
|
else:
|
||||||
okay = True
|
okay = True
|
||||||
|
|
||||||
if not okay:
|
if not okay:
|
||||||
@ -724,7 +727,7 @@ def test_gen(
|
|||||||
"value_1": 0,
|
"value_1": 0,
|
||||||
"value_2": proposed_point,
|
"value_2": proposed_point,
|
||||||
"reversed": reverse,
|
"reversed": reverse,
|
||||||
"tolerance": min_cost / first_cost,
|
"tolerance": this_tolerance,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user