From 252165cea6da182a8eac965ff78cc13523e96fdd Mon Sep 17 00:00:00 2001 From: Michael Wang Date: Thu, 16 Nov 2023 23:21:25 +0800 Subject: [PATCH] Fix broken hausdorff test (#1295) This PR revises the gold result of hausdorff empty input test to address an upstream change in cudf. Authors: - Michael Wang (https://github.com/isVoid) - Mark Harris (https://github.com/harrism) Approvers: - Bradley Dice (https://github.com/bdice) - Vyas Ramasubramani (https://github.com/vyasr) - Mark Harris (https://github.com/harrism) - H. Thomson Comer (https://github.com/thomcom) --- python/cuspatial/cuspatial/core/spatial/distance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cuspatial/cuspatial/core/spatial/distance.py b/python/cuspatial/cuspatial/core/spatial/distance.py index fa53bacee..309e88e21 100644 --- a/python/cuspatial/cuspatial/core/spatial/distance.py +++ b/python/cuspatial/cuspatial/core/spatial/distance.py @@ -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.")