Esempio n. 1
0
 def get_trunk_radii(self, neurite_type=TreeType.all):
     '''Get the trunk radii of a given type in a neuron'''
     return self._iterable_type(
         [trunk_radius(t) for t in self.neurites
          if checkTreeType(neurite_type, t.type)]
     )
Esempio n. 2
0
def test_trunk_radius():
    t = Tree((0, 0, 0, 42))
    t.add_child(Tree((1, 0, 0, 4)))
    nt.assert_equal(trunk_radius(t), 42.0)
Esempio n. 3
0
 def get_trunk_radii(self, neurite_type=TreeType.all):
     '''Get the trunk radii of a given type in a neuron'''
     return self._iterable_type([
         trunk_radius(t) for t in self.neurites
         if checkTreeType(neurite_type, t.type)
     ])