ptypy.utils.misc.nm2keV# ptypy.utils.misc.nm2keV(nm)# Convert wavelength in nanometers to photon energy in keV.