PyGeodesy
PyGeodesy copied to clipboard
Geographiclib 2.0
Only PyGeodesy 22.4.22 and newer versions work with the latest geographiclib 2.0 release. All earlier PyGeodesy releases throw an AttributeError.
A workaround to use geographiclib 2.0 with older PyGeodesy versions is to patch module pygeodesy.karney.py near line 491 (in 22.4.11) from ...
k._isfinite = M.isfinite
to the following (for Python 3.7+ only) ...
try:
k._isfinite = M.isfinite
except AttributeError:
from math import isfinite # Python 3+
k._isfinite = M.isfinite = isfinite