Skip to content

Commit a401b64

Browse files
Bugfix: Collective Monitor was not declared as collective
1 parent 8b34376 commit a401b64

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/000a_sps_tune_shift.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
)
6565

6666
# initialize a damper with 100 turns gain
67-
transverse_damper = xf.TransverseDamper(
67+
transverse_damper = xw.TransverseDamper(
6868
gain_x=2/100, gain_y=2/100,
6969
zeta_range=(-0.5*bucket_length, 0.5*bucket_length),
7070
num_slices=100,
@@ -73,7 +73,7 @@
7373
)
7474

7575
# initialize a monitor for the average transverse positions
76-
monitor = xf.CollectiveMonitor(
76+
monitor = xw.CollectiveMonitor(
7777
base_file_name=f'sps_tune_shift',
7878
monitor_bunches=True,
7979
monitor_slices=False,

xwakes/beam_elements/collective_monitor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ class CollectiveMonitor(ElementWithSlicer):
7373
Use flattened wakes
7474
"""
7575

76+
iscollective = True
77+
7678
_stats_to_store = [
7779
'mean_x', 'mean_px', 'mean_y', 'mean_py', 'mean_zeta',
7880
'mean_delta', 'sigma_x', 'sigma_y', 'sigma_zeta',

0 commit comments

Comments
 (0)