Skip to content

Commit

Permalink
Merge branch 'main' into infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
knaaptime authored Feb 15, 2024
2 parents 940ed14 + 185123f commit 6b6d575
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tobler/area_weighted/area_interpolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def _area_interpolate_binning(
Returns
-------
estimates : geopandas.GeoDataFrame
new geodaraframe with interpolated variables as columns and target_df geometry
new geodataframe with interpolated variables as columns and target_df geometry
as output geometry
Notes
Expand Down
2 changes: 1 addition & 1 deletion tobler/area_weighted/area_interpolate_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def area_interpolate_dask(
Returns
-------
estimates : dask_geopandas.GeoDataFrame
new dask-geopandas geodaraframe with interpolated variables and `id_col` as
new dask-geopandas geodataframe with interpolated variables and `id_col` as
columns and target_df geometry as output geometry
"""
Expand Down
2 changes: 1 addition & 1 deletion tobler/pycno/pycno.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def pycno_interpolate(
Returns
-------
geopandas.GeoDataFrame
new geodaraframe with interpolated variables as columns and target_df geometry
new geodataframe with interpolated variables as columns and target_df geometry
as output geometry
Notes
Expand Down
1 change: 1 addition & 0 deletions tobler/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import geopandas
import pytest
import shapely
from libpysal.examples import load_example
from numpy.testing import assert_almost_equal

Expand Down
3 changes: 2 additions & 1 deletion tobler/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import geopandas
import numpy as np
import pandas
import shapely
from shapely.geometry import Polygon


Expand Down Expand Up @@ -138,7 +139,7 @@ def h3fy(source, resolution=6, clip=False, buffer=False, return_geoms=True):
else:
source = source.to_crs(4326)

source_unary = source.unary_union
source_unary = shapely.force_2d(source.unary_union)

if type(source_unary) == Polygon:
hexagons = _to_hex(
Expand Down

0 comments on commit 6b6d575

Please sign in to comment.