mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Stop using shapely's almost_equals.
The docs say it was deprecated in favor of equals_exact with an explicit tolerance.
This commit is contained in:
parent
59af080bfb
commit
b482dbb031
@ -59,7 +59,9 @@ class NavPoint:
|
||||
if not isinstance(other, NavPoint):
|
||||
return False
|
||||
|
||||
if not self.point.almost_equals(other.point):
|
||||
# The tolerance value used here is the same that was used by the now deprecated
|
||||
# almost_equals.
|
||||
if not self.point.equals_exact(other.point, 0.5 * 10 ** (-6)):
|
||||
return False
|
||||
|
||||
return self.poly == other.poly
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user