neurom.core._soma.make_soma¶
-
neurom.core._soma.
make_soma
(points, soma_check=None)¶ Make a soma object from a set of points
Infers the soma type (SomaSinglePoint, SomaThreePoint or SomaSimpleContour) from the points.
Parameters: - points – collection of points forming a soma.
- soma_check – optional validation function applied to points. Should
- a SomaError if points not valid. (raise) –
Raises: - SomaError if no soma points found, points incompatible with soma, or
- if soma_check(points) fails.