Skip to content

Commit

Permalink
Also convert particle radius when converting units. Closes #799.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Oct 31, 2024
1 parent 8ae89d6 commit 0b5c85d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rebound/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def units_convert_particle(p, old_l, old_t, old_m, new_l, new_t, new_m):
p.x = convert_length(p.x, old_l, new_l)
p.y = convert_length(p.y, old_l, new_l)
p.z = convert_length(p.z, old_l, new_l)
p.r = convert_length(p.r, old_l, new_l)
p.vx = convert_vel(p.vx, old_l, old_t, new_l, new_t)
p.vy = convert_vel(p.vy, old_l, old_t, new_l, new_t)
p.vz = convert_vel(p.vz, old_l, old_t, new_l, new_t)
Expand Down

0 comments on commit 0b5c85d

Please sign in to comment.