PyGeodesy icon indicating copy to clipboard operation
PyGeodesy copied to clipboard

Geographiclib 2.0

Open mrJean1 opened this issue 3 years ago • 0 comments

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

mrJean1 avatar Apr 23 '22 21:04 mrJean1