Skip to content

Commit

Permalink
fix return result
Browse files Browse the repository at this point in the history
  • Loading branch information
isVoid committed Nov 15, 2023
1 parent 0cf50a7 commit 0a3f789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/cuspatial/cuspatial/core/spatial/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def directed_hausdorff_distance(multipoints: GeoSeries):

num_spaces = len(multipoints)
if num_spaces == 0:
return DataFrame()
return DataFrame([])

if not contains_only_multipoints(multipoints):
raise ValueError("Input must be a series of multipoints.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def _test_hausdorff_from_list_of_spaces(spaces):
def test_empty():
actual = _test_hausdorff_from_list_of_spaces([])

expected = cudf.DataFrame([], columns=cudf.Index([]))
expected = cudf.DataFrame([])

cudf.testing.assert_frame_equal(expected, actual)

Expand Down

0 comments on commit 0a3f789

Please sign in to comment.