:mod:`neuron_morphology.snap_polygons.types` ============================================ .. py:module:: neuron_morphology.snap_polygons.types Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: neuron_morphology.snap_polygons.types.ensure_polygon neuron_morphology.snap_polygons.types.ensure_linestring neuron_morphology.snap_polygons.types.ensure_path neuron_morphology.snap_polygons.types.split_pathstring .. data:: NicePathType .. data:: PathType .. data:: PathsType .. data:: PolyType .. data:: LineType .. data:: TransformType .. data:: MultiPolygonResolverType .. data:: MultiSurfaceResolvertype .. function:: ensure_polygon(candidate: PolyType) -> Polygon Convert from one of many polygon representations to Polygon .. !! processed by numpydoc !! .. function:: ensure_linestring(candidate: LineType) -> LineString Convert from one of many line representations to LineString .. !! processed by numpydoc !! .. function:: ensure_path(candidate: PathType, num_dims: int = 2) -> NicePathType Ensure that an input path, which might be a "x,y,x,y" string, is represented as a list of lists instead. :Parameters: **candidate** : input coordinate sequence .. **num_dims** : how manu elements define a coordinate .. :Returns: Contents of inputs, with each coordinate a list of float .. .. !! processed by numpydoc !! .. function:: split_pathstring(pathstring: str, num_dims: int = 2, sep: str = ',') -> NicePathType Converts a pathstring ("x,y,x,y...") to a num_points X num_dims list of lists of float :Parameters: **pathstring** : input coordinate sequence .. **num_dims** : how manu elements define a coordinate .. **sep** : character separating elements .. :Returns: Contents of pathstring, with each coordinate a list of float .. .. !! processed by numpydoc !!