Skip to content

Commit

Permalink
fix area test
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Jul 1, 2024
1 parent 40e4736 commit cfe82aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/core/tests/algorithm/test_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ def test_area():
assert isinstance(gdf, gpd.GeoDataFrame)

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

pa_area = pa.array(ga_area.chunk(0))
pa_area = pa_arr.chunk(0)
assert np.allclose(shapely_area, pa_area)

0 comments on commit cfe82aa

Please sign in to comment.