Skip to content

Commit

Permalink
Unit tests for transformations now check all particles and not only t…
Browse files Browse the repository at this point in the history
…he first. (#806)
  • Loading branch information
luke-wriglesworth authored Nov 23, 2024
1 parent 0b5c85d commit 9fc283a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rebound/tests/test_transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
def getc(sim):
c = []
for i in range(sim.N):
c.append(sim.particles[0].x)
c.append(sim.particles[0].y)
c.append(sim.particles[0].z)
c.append(sim.particles[0].vx)
c.append(sim.particles[0].vy)
c.append(sim.particles[0].vz)
c.append(sim.particles[0].m)
c.append(sim.particles[0].r)
c.append(sim.particles[i].x)
c.append(sim.particles[i].y)
c.append(sim.particles[i].z)
c.append(sim.particles[i].vx)
c.append(sim.particles[i].vy)
c.append(sim.particles[i].vz)
c.append(sim.particles[i].m)
c.append(sim.particles[i].r)
return c

class TestTransformations(unittest.TestCase):
Expand Down

0 comments on commit 9fc283a

Please sign in to comment.