neurom.check.morphtree.is_flat

neurom.check.morphtree.is_flat(neurite, tol, method='tolerance')[source]

Check if neurite is flat using the given method

Parameters:
  • neurite (Neurite) – neurite to operate on
  • tol (float) – tolerance
  • method (string) – the method of flatness estimation: ‘tolerance’ returns true if any extent of the tree is smaller than the given tolerance ‘ratio’ returns true if the ratio of the smallest directions is smaller than tol. e.g. [1,2,3] -> 1/2 < tol
Returns:

True if neurite is flat