Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2025
1 parent 56d5042 commit 98bc9e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@

print(f"dE/dx analytic = {dEdx}")
print(f"dE/dx simulated = {dEdx_simulation[-1]}")
print(f"dE/dx simulated/analytic = {dEdx_simulation[-1]/dEdx}")
print(f"dE/dx simulated/analytic = {dEdx_simulation[-1] / dEdx}")
assert np.abs(dEdx_simulation[-1] / dEdx - 1.0) < 0.03

sigam_total = 1.698e-28 # Calculated from table with k cutoff=1.e-4
N_photon = n_e * n_i * L * beta * constants.c * sigam_total * dt
print(
f"New photons per step simulated/analytic = {particle_number[-1,-1]/(particle_energy[-1,0]*N_photon)}"
f"New photons per step simulated/analytic = {particle_number[-1, -1] / (particle_energy[-1, 0] * N_photon)}"
)
assert (
np.abs(particle_number[-1, -1] / (particle_energy[-1, 0] * N_photon) - 1.0) < 0.03
Expand Down

0 comments on commit 98bc9e8

Please sign in to comment.