diff --git a/docs/source/api.rst b/docs/source/api.rst index 512919d9..81ec7cc9 100644 --- a/docs/source/api.rst +++ b/docs/source/api.rst @@ -78,15 +78,14 @@ properties common to all neurons. TreeNeuron-specific methods --------------------------- -These are class methods available only for ``TreeNeurons``. Most of them are simply -short-hands for the other navis functions. +These are class methods available only for ``TreeNeurons``. Most of them are +simply short-hands for the other navis functions. .. autosummary:: :toctree: generated/ ~navis.TreeNeuron.convert_units ~navis.TreeNeuron.downsample - ~navis.TreeNeuron.get_dps ~navis.TreeNeuron.get_graph_nx ~navis.TreeNeuron.get_igraph ~navis.TreeNeuron.prune_by_longest_neurite diff --git a/navis/core/neurons.py b/navis/core/neurons.py index fef01be9..b0b2fe7a 100644 --- a/navis/core/neurons.py +++ b/navis/core/neurons.py @@ -816,8 +816,6 @@ class TreeNeuron(BaseNeuron): graph: 'nx.DiGraph' igraph: 'igraph.Graph' # type: ignore # doesn't know iGraph - dps: pd.DataFrame - n_branches: int n_leafs: int cable_length: Union[int, float] @@ -846,7 +844,7 @@ class TreeNeuron(BaseNeuron): #: Temporary attributes that need to be regenerated when data changes. TEMP_ATTR = ['_igraph', '_graph_nx', '_segments', '_small_segments', - '_geodesic_matrix', '_dps', 'centrality_method', '_simple', + '_geodesic_matrix', 'centrality_method', '_simple', '_cable_length'] #: Attributes used for neuron summary @@ -1239,15 +1237,6 @@ def cycles(self) -> Optional[List[int]]: except BaseException: raise - @temp_property - def dps(self) -> 'core.Dotprops': - """Neuron broken down into small linear segments.""" - # If graph does not exist, create and return - if not hasattr(self, '_dps'): - # This also sets the attribute - self._dps = self.get_dps() - return self._dps - @property def simple(self) -> 'TreeNeuron': """Return simple neuron representation.