[interpolatable] Remove unused code
This commit is contained in:
parent
348774af36
commit
62d54b03d3
@ -376,9 +376,6 @@ def test_gen(
|
|||||||
size1 = m1Vec[0] * m1Vec[0]
|
size1 = m1Vec[0] * m1Vec[0]
|
||||||
midSize = midVector[0] * midVector[0]
|
midSize = midVector[0] * midVector[0]
|
||||||
|
|
||||||
power = 1
|
|
||||||
t = tolerance**power
|
|
||||||
|
|
||||||
for overweight, problem_type in enumerate(
|
for overweight, problem_type in enumerate(
|
||||||
(
|
(
|
||||||
InterpolatableProblem.UNDERWEIGHT,
|
InterpolatableProblem.UNDERWEIGHT,
|
||||||
@ -405,13 +402,9 @@ def test_gen(
|
|||||||
) or (overweight and 1e-5 + expectedSize / tolerance < midSize):
|
) or (overweight and 1e-5 + expectedSize / tolerance < midSize):
|
||||||
try:
|
try:
|
||||||
if overweight:
|
if overweight:
|
||||||
this_tolerance = (expectedSize / midSize) ** (
|
this_tolerance = expectedSize / midSize
|
||||||
1 / power
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
this_tolerance = (midSize / expectedSize) ** (
|
this_tolerance = midSize / expectedSize
|
||||||
1 / power
|
|
||||||
)
|
|
||||||
except ZeroDivisionError:
|
except ZeroDivisionError:
|
||||||
this_tolerance = 0
|
this_tolerance = 0
|
||||||
log.debug("tolerance %g", this_tolerance)
|
log.debug("tolerance %g", this_tolerance)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user