Skip to content

Commit b70e308

Browse files
authored
Merge pull request #153 from xsuite/release/v0.6.3
Release 0.6.3
2 parents 7ca5f9b + c627639 commit b70e308

File tree

15 files changed

+37864
-222
lines changed

15 files changed

+37864
-222
lines changed

examples/lhc_run3_offmomentum_lossmap.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@
5959
line.collimators.assign_optics()
6060

6161

62-
# Optimise the line
63-
line.optimize_for_tracking()
64-
65-
6662
# Generate initial matched bunch
6763
part = xp.generate_matched_gaussian_bunch(nemitt_x=colldb.nemitt_x,
6864
nemitt_y=colldb.nemitt_y,
@@ -77,12 +73,13 @@
7773

7874
# Print some info of the RF sweep
7975
rf_sweep = xc.RFSweep(line)
80-
rf_sweep.info(sweep=sweep, num_turns=num_turns)
76+
rf_sweep.prepare(sweep_per_turn=sweep/num_turns)
77+
rf_sweep.info()
8178

8279

8380
# Track during RF sweep:
8481
line.scattering.enable()
85-
rf_sweep.track(sweep=sweep, particles=part, num_turns=num_turns, time=True, with_progress=5)
82+
line.track(particles=part, num_turns=num_turns, time=True, with_progress=5)
8683
line.scattering.disable()
8784
print(f"Done sweeping RF in {line.time_last_track:.1f}s.")
8885

0 commit comments

Comments
 (0)