Skip to content

Commit

Permalink
Use packaging.version instead of deprecated LooseVersion (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGrupp authored Nov 14, 2023
1 parent aa115ab commit 399cfcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evo/core/lie_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import numpy as np
import scipy.spatial.transform as sst
from distutils.version import LooseVersion
from packaging.version import Version
from scipy import __version__ as scipy_version

from evo import EvoException
Expand All @@ -33,7 +33,7 @@
# which is not available for Python 2.7.
# Use the legacy direct cosine matrix naming (*_dcm()) if needed.
# TODO: remove this junk once Python 2.7 is finally dead in ROS.
_USE_DCM_NAME = LooseVersion(scipy_version) < LooseVersion("1.4")
_USE_DCM_NAME = Version(scipy_version) < Version("1.4")


class LieAlgebraException(EvoException):
Expand Down

0 comments on commit 399cfcd

Please sign in to comment.