[interpolatable] Sort issues by tolerance as well
This commit is contained in:
parent
141b155353
commit
3ecbc94dcf
@ -47,7 +47,10 @@ def sort_problems(problems):
|
||||
sorted(
|
||||
problems.items(),
|
||||
key=lambda _: -min(
|
||||
(InterpolatableProblem.severity[p["type"]] for p in _[1]),
|
||||
(
|
||||
(InterpolatableProblem.severity[p["type"]] + p.get("tolerance", 0))
|
||||
for p in _[1]
|
||||
),
|
||||
),
|
||||
reverse=True,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user