diff --git a/Postprocessing_Scripts/Compute_bunch_parameters.py b/Postprocessing_Scripts/Compute_bunch_parameters.py index 1ef4c3a..1873193 100755 --- a/Postprocessing_Scripts/Compute_bunch_parameters.py +++ b/Postprocessing_Scripts/Compute_bunch_parameters.py @@ -125,7 +125,7 @@ def print_bunch_params(x,y,z,px,py,pz,E,weights,um): #print("Read "+str(Nparticles)+" particles from the file") print(" ") total_weight = w.sum() - Q = total_weight* q * nc * (c_over_omega0*1e-6)**3 * 10**(12) # Total charge in pC + Q = total_weight* q * nc * (c_over_omega0)**3 * 10**(12) # Total charge in pC print(" ") print("Total charge = "+str(Q)+" pC") diff --git a/Postprocessing_Scripts/Follow_electron_bunch_evolution.py b/Postprocessing_Scripts/Follow_electron_bunch_evolution.py index 7670a1d..0e3c3cf 100755 --- a/Postprocessing_Scripts/Follow_electron_bunch_evolution.py +++ b/Postprocessing_Scripts/Follow_electron_bunch_evolution.py @@ -128,7 +128,7 @@ def print_bunch_params(x,y,z,px,py,pz,E,weights,conversion_factor): # Nparticles = np.size(w) # Number of particles read # total_weight = w.sum() -# Q = total_weight* q * nc * (S.namelist.c_over_omega0*1e-6)**3 * 10**(12) # Total charge in pC +# Q = total_weight* q * nc * (S.namelist.c_over_omega0)**3 * 10**(12) # Total charge in pC # print(" ") # print("Total charge = ",Q," pC") # print(" ")