Skip to content

Commit

Permalink
changed Iterable[list] to Iterable[Point]
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjalling-dejong committed Dec 3, 2024
1 parent 2aa8d4e commit 90ecd9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fm2prof/RegionPolygonFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, logger):
self.undefined = -999

def classify_points_with_property(
self, points: Iterable[list], property_name: str = "name"
self, points: Iterable[Point], property_name: str = "name"
) -> np.array:
"""
Classifies points as belonging to which region
Expand All @@ -66,7 +66,7 @@ def classify_points_with_property(
return np.array(points_regions)

def classify_points_with_property_shapely_prep(
self, points: Iterable[list], property_name: str = "name"
self, points: Iterable[Point], property_name: str = "name"
):
"""
Classifies points as belonging to which region
Expand All @@ -93,7 +93,7 @@ def classify_points_with_property_shapely_prep(
return np.array(points_regions)

def classify_points_with_property_rtree_by_polygons(
self, points: Iterable[list], property_name: str = "name"
self, points: Iterable[Point], property_name: str = "name"
) -> list:
"""Applies RTree index to quickly classify points in polygons.
Expand Down

0 comments on commit 90ecd9a

Please sign in to comment.