Skip to content

Commit

Permalink
MAINT: upright units
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-lauer committed Dec 17, 2024
1 parent 657b384 commit e28cc13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pmd_beamphysics/wavefront.py
Original file line number Diff line number Diff line change
Expand Up @@ -1492,13 +1492,13 @@ def plot(dat, title: str):
if rspace:
# See tech note 3.2
power_density = 1 / 1e4 * np.abs(mesh_data) ** 2 / (2.0 * Z0)
img = plot(power_density, "Power density of mesh $W/cm^2$")
img = plot(power_density, "Power density of mesh (W/cm$^2$)")
else:
# See tech note 3.6 (coefficient is in 3.4)
power_density = (
np.abs(mesh_data) ** 2 / (2.0 * Z0) * self.fft_unit_coeff
)
img = plot(power_density, "Power density of mesh $J/eV/rad^2$")
img = plot(power_density, "Power density of mesh (J/eV/rad$^2$)")

elif key == "phase":
phase = np.angle(mesh_data)
Expand Down

0 comments on commit e28cc13

Please sign in to comment.