Dont use numpy.complex not to suppress warnings

This commit is contained in:
kngwyu
2021-06-03 20:29:54 +09:00
parent 46a7d74a1b
commit 5161db9171
4 changed files with 74 additions and 30 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ from mujoco_maze.maze_env_utils import Line
)
def test_distance(l1, l2, p, ans):
line = Line(l1, l2)
point = np.complex(*p)
point = complex(*p)
assert abs(line.distance(point) - ans) <= 1e-8