8000 fix bugs in deprecation warning · astyl/spatialmath-python@98b69f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 98b69f9

Browse files
committed
fix bugs in deprecation warning
1 parent 078cb05 commit 98b69f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spatialmath/geom3d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import spatialmath.base as base
1010
from spatialmath import SE3
1111
from spatialmath.baseposelist import BasePoseList
12+
import warnings
1213

1314
_eps = np.finfo(np.float64).eps
1415

@@ -367,7 +368,7 @@ def TwoPlanes(cls, pi1, pi2):
367368
def IntersectingPlanes(cls, pi1, pi2):
368369

369370
warnings.warn('use TwoPlanes method instead', DeprecationWarning)
370-
return cls.TwolPlanes(pi1, pi2)
371+
return cls.TwoPlanes(pi1, pi2)
371372

372373
@classmethod
373374
def PointDir(cls, point, dir):

0 commit comments

Comments
 (0)
0