Skip to content

Commit f76fdd2

Browse files
Fixed relative angles unpacking bug (#211)
1 parent 0e3c5fc commit f76fdd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jaxoplanet/orbits/keplerian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def relative_angles(
451451
The separation (arcseconds) and position angle (radians, measured
452452
east of north) of the planet relative to the star.
453453
"""
454-
X, Y, _ = self.relative_position(t, parallax=parallax)[0]
454+
X, Y, _ = self.relative_position(t, parallax=parallax)
455455
rho = jnpu.sqrt(X**2 + Y**2)
456456
theta = jnpu.arctan2(Y, X)
457457
return rho, theta

0 commit comments

Comments
 (0)