Skip to content

Commit

Permalink
Fixed relative angles unpacking bug (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
shishirdholakia authored Jan 30, 2025
1 parent 0e3c5fc commit f76fdd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jaxoplanet/orbits/keplerian.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def relative_angles(
The separation (arcseconds) and position angle (radians, measured
east of north) of the planet relative to the star.
"""
X, Y, _ = self.relative_position(t, parallax=parallax)[0]
X, Y, _ = self.relative_position(t, parallax=parallax)
rho = jnpu.sqrt(X**2 + Y**2)
theta = jnpu.arctan2(Y, X)
return rho, theta
Expand Down

0 comments on commit f76fdd2

Please sign in to comment.