Skip to content

Commit

Permalink
Handle empty case
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Feb 28, 2024
1 parent 4b6cb9f commit e18caa1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/cuspatial/cuspatial/core/binops/distance_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ def __call__(self):
# Rows with misaligned indices contains nan. Here we scatter the
# distance values to the correct indices.
result = as_column(
float("nan"),
length=len(self._res_index),
dtype="float64",
[float("nan")] * len(self._res_index), dtype="float64"
)
scatter_map = as_column(
range(len(self._res_index)), dtype="int32"
Expand Down

0 comments on commit e18caa1

Please sign in to comment.