Skip to content

Commit

Permalink
FIX: conversion coefficient in x/y dimensions
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Mayes <[email protected]>
  • Loading branch information
ken-lauer and ChristopherMayes authored Dec 20, 2024
1 parent 30b5441 commit 3b02642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmd_beamphysics/wavefront.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def conversion_coeffs(wavelength: float, dim: int) -> tuple[float, ...]:
Theta-x, theta-y, omega.
"""
k0 = 2.0 * np.pi / wavelength

Check failure on line 394 in pmd_beamphysics/wavefront.py

View workflow job for this annotation

GitHub Actions / lint

Ruff (F841)

pmd_beamphysics/wavefront.py:394:5: F841 Local variable `k0` is assigned to but never used
return tuple([2.0 * np.pi / k0] * (dim - 1) + [2.0 * np.pi * HBAR_EV_M])
return tuple([wavelength] * (dim - 1) + [2.0 * np.pi * HBAR_EV_M])


def cartesian_domain(
Expand Down

0 comments on commit 3b02642

Please sign in to comment.