Skip to content

Commit

Permalink
pydoc style
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Apr 23, 2024
1 parent 5033de5 commit 5a51eab
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions sleap_roots/points.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@ def extract_points_from_geometry(geometry):
It recursively extracts coordinates from complex geometries and aggregates them into a single list.
For unsupported geometry types, it returns an empty list.
Parameters:
- geometry (shapely.geometry.base.BaseGeometry): A Shapely geometry object from which to extract points.
Args:
geometry (shapely.geometry.base.BaseGeometry): A Shapely geometry object from which to extract points.
Returns:
- List[np.ndarray]: A list of numpy arrays, where each array represents the coordinates of a point.
The list will be empty if the geometry type is unsupported or contains no coordinates.
Raises:
- TypeError: If the input is not a recognized Shapely geometry type.
List[np.ndarray]: A list of numpy arrays, where each array represents the coordinates of a point.
The list will be empty if the geometry type is unsupported or contains no coordinates.
Example:
>>> from shapely.geometry import Point, MultiPoint, LineString, GeometryCollection
Expand Down

0 comments on commit 5a51eab

Please sign in to comment.