Skip to content

Commit 937bd93

Browse files
Fixes in SPS tune shift tests
1 parent a401b64 commit 937bd93

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

examples/000a_sps_tune_shift.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import xwakes as xw
1212
import xtrack as xt
13-
import xfields as xf
1413
import xpart as xp
1514
import nafflib
1615

examples/000b_sps_tune_shift_multibunch.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
# Copyright (c) CERN, 2024. #
44
# ######################################### #
55

6-
import matplotlib.pyplot as plt
76
import numpy as np
87
import pathlib
98
import h5py
109

1110
import xwakes as xw
1211
import xtrack as xt
13-
import xfields as xf
1412
import xpart as xp
1513
import nafflib
1614

@@ -71,7 +69,7 @@
7169
)
7270

7371
# initialize a damper with 100 turns gain
74-
transverse_damper = xf.TransverseDamper(
72+
transverse_damper = xw.TransverseDamper(
7573
gain_x=2/100, gain_y=2/100,
7674
zeta_range=(-0.5*bucket_length, 0.5*bucket_length),
7775
num_slices=100,
@@ -81,7 +79,7 @@
8179
)
8280

8381
# initialize a monitor for the average transverse positions
84-
monitor = xf.CollectiveMonitor(
82+
monitor = xw.CollectiveMonitor(
8583
base_file_name=f'sps_tune_shift',
8684
monitor_bunches=True,
8785
monitor_slices=False,

examples/000c_sps_tune_shift_multibunch_mpi.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import xwakes as xw
1313
import xtrack as xt
14-
import xfields as xf
1514
import xpart as xp
1615
import nafflib
1716

@@ -77,7 +76,7 @@
7776
)
7877

7978
# initialize a damper with 100 turns gain
80-
transverse_damper = xf.TransverseDamper(
79+
transverse_damper = xw.TransverseDamper(
8180
gain_x=2/100, gain_y=2/100,
8281
zeta_range=(-0.5*bucket_length, 0.5*bucket_length),
8382
num_slices=100,
@@ -88,7 +87,7 @@
8887

8988
# initialize a monitor for the average transverse positions
9089
my_rank = MPI.COMM_WORLD.Get_rank()
91-
monitor = xf.CollectiveMonitor(
90+
monitor = xw.CollectiveMonitor(
9291
base_file_name=f'sps_tune_shift_rank{my_rank}',
9392
monitor_bunches=True,
9493
monitor_slices=False,

0 commit comments

Comments
 (0)