mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 07:03:33 +08:00
increase cutoff margin for alias matching
This commit is contained in:
@@ -152,7 +152,7 @@ class Classifier():
|
|||||||
base_types = {}
|
base_types = {}
|
||||||
for incorrect in incorrect_base_types:
|
for incorrect in incorrect_base_types:
|
||||||
base_types.update({incorrect: difflib.get_close_matches(
|
base_types.update({incorrect: difflib.get_close_matches(
|
||||||
incorrect, uorb_msg, n=1, cutoff=0.8)})
|
incorrect, uorb_msg, n=1, cutoff=0.6)})
|
||||||
|
|
||||||
if len(base_types) > 0:
|
if len(base_types) > 0:
|
||||||
raise AssertionError(
|
raise AssertionError(
|
||||||
|
|||||||
Reference in New Issue
Block a user