Skip to content

Commit

Permalink
Analysis: Remove hard-coded number of particles
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l authored Aug 29, 2024
1 parent 5bec6ce commit b0f0d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chicane/analysis_chicane_csr.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_moments(beam):
final = series.iterations[last_step].particles["beam"].to_df()

# compare number of particles
num_particles = 10000
num_particles = len(initial)
assert num_particles == len(initial)
assert num_particles == len(final)

Expand Down

0 comments on commit b0f0d57

Please sign in to comment.