neurom.check.morphtree.is_back_tracking

neurom.check.morphtree.is_back_tracking(neurite)[source]

Check if a neurite process backtracks to a previous node. Back-tracking takes place when a daughter of a branching process goes back and either overlaps with a previous point, or lies inside the cylindrical volume of the latter.

Parameters:neurite (Neurite) – neurite to operate on
Returns:
  1. A segment endpoint falls back and overlaps with a previous segment’s point
  2. The geometry of a segment overlaps with a previous one in the section
Return type:True Under the following scenaria