Skip to content

Commit

Permalink
Merge branch 'branch-24.04' into fea/clang-format-header-grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
harrism authored Mar 6, 2024
2 parents 9d496d0 + f29e404 commit fb4b50b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/cuspatial/cuspatial/core/binops/distance_dispatch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cudf
from cudf.core.column import as_column, full
from cudf.core.column import as_column

from cuspatial._lib.distance import (
pairwise_linestring_distance,
Expand Down Expand Up @@ -185,10 +185,11 @@ def __call__(self):

# Rows with misaligned indices contains nan. Here we scatter the
# distance values to the correct indices.
result = full(
len(self._res_index),
result = as_column(
float("nan"),
length=len(self._res_index),
dtype="float64",
nan_as_null=False,
)
scatter_map = as_column(
range(len(self._res_index)), dtype="int32"
Expand Down

0 comments on commit fb4b50b

Please sign in to comment.