Skip to content

Commit

Permalink
Fix in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Nov 7, 2023
1 parent 709bdae commit f3afba5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ def test_tracking_with_progress(test_context, with_progress, turns, collective):
particles = xp.Particles(x=[1e-3, 2e-3, 3e-3], p0c=7e12, _context=test_context)
line.build_tracker(_context=test_context)
line.track(particles, num_turns=turns, with_progress=with_progress)
particles.move(xo.ContextCpu())

assert np.all(particles.at_turn == turns)
assert np.allclose(particles.s, 10 * turns, rtol=0, atol=1e-14)

0 comments on commit f3afba5

Please sign in to comment.