Skip to content

Commit

Permalink
Round-offs in elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavbroz committed Oct 22, 2024
1 parent b5e61b1 commit 214b0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phoebe/dynamics/orbel.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def orbel_xv2el(gm, r, v):

fac = sqrt(h[0]*h[0] + h[1]*h[1])/absh

if fac < TINY:
if fac < TINY or inc == 0.0 or inc == pi:
capom = 0.0
u = arctan2(r[1], r[0])
if abs(inc - pi) < 10.0*TINY:
Expand Down

0 comments on commit 214b0fb

Please sign in to comment.