original_docstring: 
      Find interfaces between bends as defined by Piccinelli et al.
      A bend is defined by a curvature maximum
      bounded by two enclosing torsion maxima.
  
      Args:
          max_point_curv_ids (ndarray): Array of curvature maximum
          max_point_tor_ids (ndarray): Array of torsion maximum
  
      Returns:
          interface (dict): Dictionary of interfaces between bends
      
docstring: Find interfaces between bends as defined by Piccinelli et al.
  A bend is defined by a curvature maximum
  bounded by two enclosing torsion maxima.
docstring_tokens: Find interfaces between bends as defined by Piccinelli et al . A bend is defined by a curvature maximum bounded by two enclosing torsion maxima .
code: def find_interface(max_point_curv_ids, max_point_tor_ids):
      """
      Find interfaces between bends as defined by Piccinelli et al.
      A bend is defined by a curvature maximum
      bounded by two enclosing torsion maxima.
  
      Args:
          max_point_curv_ids (ndarray): Array of curvature maximum
          max_point_tor_ids (ndarray): Array of torsion maximum
  
      Returns:
          interface (dict): Dictionary of interfaces between bends
      """
      found = False
      interface = {}
      k = 0
      start_id = 0
      for c in max_point_curv_ids:
          for i in range(start_id, len(max_point_tor_ids) - 1):
              if max_point_tor_ids[i] < c < max_point_tor_ids[i + 1] and not found:
                  interface["bend%s" % (k + 1)] = np.array([max_point_tor_ids[i]])
                  k += 1
                  interface["bend%s" % (k + 1)] = np.array([max_point_tor_ids[i + 1]])
                  k += 1
                  start_id = i + 1
                  found = True
          found = False
  
      return interface
code_tokens: def find_interface ( max_point_curv_ids , max_point_tor_ids ) : found = False interface = { } k = 0 start_id = 0 for c in max_point_curv_ids : for i in range ( start_id , len ( max_point_tor_ids ) - 1 ) : if max_point_tor_ids [ i ] < c < max_point_tor_ids [ i + 1 ] and not found : interface [ "bend%s" % ( k + 1 ) ] = np . array ( [ max_point_tor_ids [ i ] ] ) k += 1 interface [ "bend%s" % ( k + 1 ) ] = np . array ( [ max_point_tor_ids [ i + 1 ] ] ) k += 1 start_id = i + 1 found = True found = False return interface
short_docstring: Find interfaces between bends as defined by Piccinelli et al.
short_docstring_tokens: Find interfaces between bends as defined by Piccinelli et al .
comment: """
      Find interfaces between bends as defined by Piccinelli et al.
      A bend is defined by a curvature maximum
      bounded by two enclosing torsion maxima.
  
      Args:
          max_point_curv_ids (ndarray): Array of curvature maximum
          max_point_tor_ids (ndarray): Array of torsion maximum
  
      Returns:
          interface (dict): Dictionary of interfaces between bends
      """