Skip to content

Commit

Permalink
Fix in multibunch beam simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Nov 18, 2024
1 parent 9569db5 commit bf408f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xpart/matched_gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ def generate_matched_gaussian_multibunch_beam(filling_scheme,
**kwargs, # Passed to build_particles
):

if particle_ref is None and line is not None:
particle_ref = line.particle_ref

assert ((line is not None and particle_ref is not None) or
(rf_harmonic is not None and rf_voltage is not None) or
bucket_length is not None)
Expand Down

0 comments on commit bf408f6

Please sign in to comment.