@@ -117,7 +117,7 @@ def __init__(self, machine_configuration=None, optics_mode='smooth', **kwargs):
117117 accQ_x = accQ_x , accQ_y = accQ_y , Qp_x = Qp_x , Qp_y = Qp_y , app_x = app_x , app_y = app_y , app_xy = app_xy ,
118118 alpha_mom_compaction = alpha , longitudinal_mode = longitudinal_mode ,
119119 h_RF = np .atleast_1d (h_RF ), V_RF = np .atleast_1d (V_RF ), dphi_RF = np .atleast_1d (dphi_RF ), p0 = p0 , p_increment = p_increment ,
120- charge = charge , mass = mass )
120+ charge = charge , mass = mass , RF_at = RF_at )
121121
122122class shortSPS (BasicSynchrotron ):
123123
@@ -212,15 +212,11 @@ def __init__(self, machine_configuration=None, optics_mode='smooth', **kwargs):
212212 % (attr , str2print ))
213213 temp = kwargs [attr ]
214214 exec ('%s = temp' % attr )
215-
216-
217215
218-
219-
220216
221217 super (shortSPS , self ).__init__ (optics_mode = optics_mode , circumference = circumference , n_segments = n_segments , s = s , name = name ,
222218 alpha_x = alpha_x , beta_x = beta_x , D_x = D_x , alpha_y = alpha_y , beta_y = beta_y , D_y = D_y ,
223219 accQ_x = accQ_x , accQ_y = accQ_y , Qp_x = Qp_x , Qp_y = Qp_y , app_x = app_x , app_y = app_y , app_xy = app_xy ,
224220 alpha_mom_compaction = alpha , longitudinal_mode = longitudinal_mode ,
225221 h_RF = np .atleast_1d (h_RF ), V_RF = np .atleast_1d (V_RF ), dphi_RF = np .atleast_1d (dphi_RF ), p0 = p0 , p_increment = p_increment ,
226- charge = charge , mass = mass )
222+ charge = charge , mass = mass , RF_at = RF )
0 commit comments