Skip to content

Commit

Permalink
distribution and lattice variables call another function
Browse files Browse the repository at this point in the history
Part of an old commit which removed the use of text files for distirbution/latticeelemtnt
  • Loading branch information
proy30 committed Aug 2, 2024
1 parent f683975 commit a75fe11
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def run_simulation(save_png=True):
# muypy=0.846574929020762,
# mutpt=0.0,
# )
distr = analyzeFunctions.read_distribution_file()
distr = save_distribution_parameters_to_file()

sim.add_particles(bunch_charge_C, distr, npart)

assert pc.total_number_of_particles() == npart
Expand All @@ -71,7 +72,7 @@ def run_simulation(save_png=True):
# elements.Quad(1.0, -1.0),
# elements.Drift(0.25),
# ]
fodo = analyzeFunctions.read_latticeElements_file()
fodo = save_latticeElements_to_file()

sim.lattice.extend(fodo)

Expand Down

0 comments on commit a75fe11

Please sign in to comment.