@@ -158,7 +158,7 @@ def _second_step_red_cuda(
158158
159159 def _track (self , * , n_files : int = cfg .DEFAULT_TRACK_SAVE_N_FILES ) -> None :
160160 # Init parameters
161- z_start , z_stop , dz = self .acc . z_start , self .acc . z_stop , self . acc .dz
161+ z_start , z_stop , dz = self .z_start , self .z_stop , self .dz
162162 t_start , t_stop , dt = self .t_start , self .t_stop , self .dt
163163
164164 Y = np .transpose (np .concatenate ([beam .df .to_numpy () for beam in self .beams ]))
@@ -224,16 +224,16 @@ def _track(self, *, n_files: int = cfg.DEFAULT_TRACK_SAVE_N_FILES) -> None:
224224 Bx , By , Bz = Bx * gamma * B0 , By * gamma * B0 , Bz * gamma * B0
225225 Ex , Ey , Ez = Ex * E0 , Ey * E0 , Ez * E0
226226
227- progress , meters = t / t_stop * 100 , z_start + t * const . c
227+ progress = t / t_stop * 100
228228 if progress % (100 // n_files ) < 2 * dt / t_stop * 100 :
229229 self .result .update (
230230 {
231- round (meters , 3 ): pd .DataFrame (
231+ round (progress , 3 ): pd .DataFrame (
232232 np .transpose (
233233 np .vstack ((Y [0 ], Y [1 ], Y [2 ], Y [3 ], Y [4 ], Y [5 ], Bx , By , Bz , Ex , Ey , Ez , macro_q ))
234234 ),
235235 columns = ["x" , "y" , "z" , "px" , "py" , "pz" , "Bx" , "By" , "Bz" , "Ex" , "Ey" , "Ez" , "charge" ],
236236 )
237237 }
238238 )
239- print ("\r z = %.2f m (%. 1f %%) " % ( meters , progress ) , end = "" )
239+ print ("\r %. 1f %% " % progress , end = "" )
0 commit comments