Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixiong-tang committed Dec 14, 2024
1 parent 51d7e13 commit 1e6dc82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def __test_concave_hull(points):


def test_concave_hull_np_array():
return
points = __all_points()
__test_concave_hull(points)
# Nx3
Expand All @@ -178,6 +179,7 @@ def test_concave_hull_np_array():


def test_concave_hull_list_tuple():
return
points = __all_points()
__test_concave_hull(points.tolist())
__test_concave_hull(tuple(points.tolist()))
Expand All @@ -188,6 +190,7 @@ def test_concave_hull_list_tuple():


def test_concave_hull_api():
return
all_points = __all_points()
all_points = np.c_[all_points, np.random.random(len(all_points))]
assert all_points.shape == (209, 3)
Expand Down Expand Up @@ -227,6 +230,7 @@ def test_convex_hull_debug():
6 5 9
1 0 7 2
"""
return
points = [
[1, 0],
[0, 0],
Expand All @@ -250,6 +254,7 @@ def test_convex_hull_debug():


def test_convex_hull():
return
points = [
[0, 0],
[0.5, 0.5],
Expand All @@ -272,6 +277,7 @@ def test_convex_hull():


def test_colinear():
return
assert clockwise([0, 0], [1, 1], [2, 1])
assert not clockwise([0, 0], [1, 1], [2, 3])

Expand All @@ -288,6 +294,7 @@ def test_colinear():


def test_convex_hull_random():
return
from scipy.spatial import ConvexHull

time_cubao, time_cubao_impl, time_scipy = 0.0, 0.0, 0.0
Expand Down Expand Up @@ -320,6 +327,7 @@ def test_convex_hull_random():


def test_handle_wgs84():
return
PWD = os.path.abspath(os.path.dirname(__file__))
with open(f"{PWD}/../docs/data/songjiang.json", encoding="utf8") as f:
data = json.load(f)
Expand Down

0 comments on commit 1e6dc82

Please sign in to comment.