From 5a51eab3f530fd242eeb5d18a124dd9457b8f411 Mon Sep 17 00:00:00 2001 From: eberrigan Date: Tue, 23 Apr 2024 10:58:53 -0700 Subject: [PATCH] pydoc style --- sleap_roots/points.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/sleap_roots/points.py b/sleap_roots/points.py index fd9acbc..6d5c5c1 100644 --- a/sleap_roots/points.py +++ b/sleap_roots/points.py @@ -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