Skip to content

Commit

Permalink
replace depricated calculate_com function
Browse files Browse the repository at this point in the history
  • Loading branch information
semaphoreP committed Jan 8, 2024
1 parent 4ee8274 commit 9201708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orbitize/nbody.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def calc_orbit(
for j,t in enumerate(te):
sim.integrate(t/365.25)
#for the star and each planet in each epoch denoted by j,t find the RA, Dec, and RV
com = sim.calculate_com()
com = sim.com()
ra_reb[j,0] = -(ps[0].x-com.x)# ra is negative x
dec_reb[j,0] = ps[0].y-com.y
vz[j,0] = ps[0].vz
Expand Down

0 comments on commit 9201708

Please sign in to comment.