Skip to content

Commit d927d7e

Browse files
authored
Merge pull request #21 from ATL2001/fix_line_locate_point_return_dtype
fix return dtype of line_locate_point expression
2 parents edb1ec8 + 7b2723b commit d927d7e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "spatial-polars"
3-
version = "0.2.2" # dont forget __init__.py and uv lock
3+
version = "0.2.3" # dont forget __init__.py and uv lock
44
description = "A package that extends polars for working with geospatial data."
55
readme = "README.md"
66
authors = [

src/spatial_polars/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
"spatial_series_dtype",
1515
]
1616

17-
__version__ = "0.2.1" # dont forget pyproject.toml and uv lock
17+
__version__ = "0.2.3" # dont forget pyproject.toml and uv lock

src/spatial_polars/spatialexpr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,7 @@ def line_locate_point(
21632163
if other is not None:
21642164
return self._expr.map_batches(
21652165
lambda s: s.spatial.line_locate_point(other, normalized=normalized),
2166-
return_dtype=spatial_series_dtype,
2166+
return_dtype=pl.Float64,
21672167
is_elementwise=True,
21682168
)
21692169
# expect struct with two geometries.
@@ -2172,7 +2172,7 @@ def line_locate_point(
21722172
combined.struct[1].spatial.to_shapely_array(),
21732173
normalized=normalized,
21742174
),
2175-
return_dtype=spatial_series_dtype,
2175+
return_dtype=pl.Float64,
21762176
is_elementwise=True,
21772177
)
21782178

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)