Skip to content

Commit 9d836cb

Browse files
committed
Enhance warning.
1 parent ce4b0a7 commit 9d836cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

machines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def generate_6D_Gaussian_bunch(self, n_macroparticles, intensity, epsn_x, epsn_y
135135
is_accepted=check_inside_bucket).generate()
136136

137137
if self.D_x[0] != 0:
138-
self.warns(('\nCorrecting for (horizontal) dispersion {:g} m at first segment!\n').format(self.D_x[0]))
138+
self.warns(('Correcting for (horizontal) dispersion {:g} m at first segment!\n').format(self.D_x[0]))
139139
bunch.x += bunch.dp*self.D_x[0]
140140

141141
return bunch
@@ -156,7 +156,7 @@ def generate_6D_Gaussian_bunch_matched(self, n_macroparticles, intensity, epsn_x
156156
transverse_map=self.transverse_map,
157157
rf_bucket=self.longitudinal_map.get_bucket(self.gamma)).generate()
158158
if self.D_x[0] != 0:
159-
self.warns(('\nCorrecting for (horizontal) dispersion {:g} m at first segment!\n').format(self.D_x[0]))
159+
self.warns(('Correcting for (horizontal) dispersion {:g} m at first segment!\n').format(self.D_x[0]))
160160
bunch.x += bunch.dp*self.D_x[0]
161161

162162
return bunch

0 commit comments

Comments
 (0)