Skip to content

Commit

Permalink
Merge pull request #83 from arjunsavel/rv_unit_bug
Browse files Browse the repository at this point in the history
rv planet unit bug!!!
  • Loading branch information
arjunsavel authored Nov 8, 2024
2 parents d6238ee + 64889cc commit fb42746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scope/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ def calc_rvs(v_sys, v_sys_measured, Kp, Kstar, phases):
"""
v_sys_tot = v_sys + v_sys_measured # total offset
rv_planet = (
v_sys_tot + Kp * np.sin(2.0 * np.pi * phases) * 1e3
) # input in km/s, convert to m/s
v_sys_tot + Kp * np.sin(2.0 * np.pi * phases)
) * 1e3 # input in km/s, convert to m/s

rv_star = (
v_sys_measured - Kstar * np.sin(2.0 * np.pi * phases)
Expand Down

0 comments on commit fb42746

Please sign in to comment.