code: def ellipticity2phi_gamma(e1, e2):
      
      phi = np.arctan2(e2, e1)/2
      gamma = np.sqrt(e1**2+e2**2)
      return phi, gamma
docs: :param e1: ellipticity component
      :param e2: ellipticity component
      :return: angle and abs value of ellipticity