Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Sep 6, 2024
1 parent 59d8a4f commit 5da2330
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/geoarrow-compute/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ dynamic = ["version"]

[tool.maturin]
features = ["pyo3/extension-module"]
module-name = "geoarrow.rust.core._compute"
module-name = "geoarrow.rust.compute._compute"
python-source = "python"
3 changes: 2 additions & 1 deletion python/tests/algorithm/test_affine_ops.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import geoarrow.rust.compute as grc
import geoarrow.rust.core as gars
import geodatasets
import geopandas as gpd
Expand All @@ -19,7 +20,7 @@ def test_affine_function():
yoff = 20

affine = Affine.translation(xoff, yoff)
translated = gars.affine_transform(geom, affine)
translated = grc.affine_transform(geom, affine)
orig_geom = geom.chunk(0)[0]
translated_geom = translated.chunk(0)[0]

Expand Down
3 changes: 2 additions & 1 deletion python/tests/algorithm/test_area.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import geoarrow.rust.compute as grc
import geoarrow.rust.core as gars
import geodatasets
import geopandas as gpd
Expand All @@ -13,7 +14,7 @@ def test_area():
assert isinstance(gdf, gpd.GeoDataFrame)

table = gars.from_geopandas(gdf)
ga_area = gars.area(gars.geometry_col(table))
ga_area = grc.area(gars.geometry_col(table))
pa_arr = pa.chunked_array(ga_area)
assert pa_arr.num_chunks == 1

Expand Down

0 comments on commit 5da2330

Please sign in to comment.