code: def angle( x, y ):
      
      dot = np.dot( x, y )
      x_mod = np.linalg.norm( x )
      y_mod = np.linalg.norm( y )
      cos_angle = dot / ( x_mod * y_mod )
      return np.degrees( np.arccos( cos_angle ) )
docs: Calculate the angle between two vectors, in degrees.
  
      Args:
          x (np.array): one vector.
          y (np.array): the other vector.
  
      Returns:
          (float):      the angle between x and y in degrees.