def list_known_nonphylogenetic_metrics():
 result = []
 for name in dir(distance_transform):
  if name.startswith('dist_'):
   result.append(name[5:])
  elif name.startswith('binary_dist_'):
   result.append(('binary_' + name[12:]))
 result.sort()
 return result

def list_known_nonphylogenetic_metrics ( ) : result = [ ] for name in dir ( distance_transform ) : if name . startswith ( 'dist_' ) : result . append ( name [ 5 : ] ) elif name . startswith ( 'binary_dist_' ) : result . append ( ( 'binary_' + name [ 12 : ] ) ) result . sort ( ) return result
lists known metrics by name from distance_transform .