Fix variable naming

This commit is contained in:
Marty Oehme 2022-12-25 00:34:27 +01:00
parent ac711ce108
commit 274bb47c64
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9

View file

@ -83,7 +83,7 @@ class Annotation:
self.colors.get("stroke") or self.colors.get("fill") or (0.0, 0.0, 0.0) self.colors.get("stroke") or self.colors.get("fill") or (0.0, 0.0, 0.0)
) )
nearest = None nearest = None
minimum_similarity = COLOR_SIMILARITY_THRESHOLD minimum_similarity = COLOR_SIMILARITY_MINIMUM
for name, values in COLORS.items(): for name, values in COLORS.items():
similarity_ratio = self._color_similarity_ratio(values, annot_colors) similarity_ratio = self._color_similarity_ratio(values, annot_colors)
if similarity_ratio > minimum_similarity: if similarity_ratio > minimum_similarity: