neuron_morphology.transforms.transform_base module

class neuron_morphology.transforms.transform_base.TransformBase[source]

Bases: abc.ABC

Abstract base class for implementing swc transforms. Each child class should implement these methods.

Methods

transform(self) Apply this transform to (3,) point or (3,n) array-like of points.
transform_morphology(self) Apply this transform to all nodes in a morphology.
transform(self)[source]

Apply this transform to (3,) point or (3,n) array-like of points.

Returns:
numpy.ndarray with same shape as input
transform_morphology(self) → neuron_morphology.morphology.Morphology[source]

Apply this transform to all nodes in a morphology.

Returns:
A Morphology