Example #1
0
 def get_n_sections_per_neurite(self, neurite_type=TreeType.all):
     '''Get an iterable with the number of sections for a given neurite type'''
     tree_filter = tree_type_checker(neurite_type)
     return self._iterable_type(
         [_sec.count(n) for n in self.neurites if tree_filter(n)]
     )
Example #2
0
def _check_count(obj, n):
    nt.eq_(sec.count(obj), n)
Example #3
0
 def get_n_sections(self, neurite_type=TreeType.all):
     '''Get the number of sections of a given type'''
     tree_filter = tree_type_checker(neurite_type)
     return _sec.count(self, tree_filter)