Skip to content

Commit 37cd97e

Browse files
committed
Tests and some fixes
1 parent e7fbc12 commit 37cd97e

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

pysixtrack/be_beamfields/beambeam.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class BeamBeam4D(Element):
1717
"Charge of the interacting distribution (strong beam)",
1818
0,
1919
),
20-
("sigma_x", "m", "Horizontal size of the strong beam (r.m.s.)", 0),
21-
("sigma_y", "m", "Vertical size of the strong beam (r.m.s.)", 0),
22-
("beta_r", "", "Relativistic beta of the stron beam", 0),
20+
("sigma_x", "m", "Horizontal size of the strong beam (r.m.s.)", 1.0),
21+
("sigma_y", "m", "Vertical size of the strong beam (r.m.s.)", 1.0),
22+
("beta_r", "", "Relativistic beta of the stron beam", 1.0),
2323
(
2424
"x_bb",
2525
"m",
@@ -112,20 +112,20 @@ class BeamBeam6D(Element):
112112
"charge_slices",
113113
"qe",
114114
"Charge of the interacting slices (strong beam)",
115-
(),
115+
(0.0),
116116
),
117117
(
118118
"zeta_slices",
119119
"m",
120120
"Longitudinal position of the interacting"
121121
"slices (>0 head of the strong).",
122-
(),
122+
(0.0),
123123
),
124124
(
125125
"sigma_11",
126126
"m^2",
127127
"Sigma_11 element of the sigma matrix of the strong beam",
128-
0,
128+
1.0,
129129
),
130130
(
131131
"sigma_12",
@@ -167,7 +167,7 @@ class BeamBeam6D(Element):
167167
"sigma_33",
168168
"m^2",
169169
"Sigma_33 element of the sigma matrix of the strong beam",
170-
0,
170+
1.0,
171171
),
172172
(
173173
"sigma_34",

tests/test_track.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
pysixtrack.elements.Line,
1414
pysixtrack.elements.LimitRect,
1515
pysixtrack.elements.LimitEllipse,
16+
pysixtrack.elements.BeamBeam4D,
17+
pysixtrack.elements.BeamBeam6D,
1618
]
1719

1820

0 commit comments

Comments
 (0)