devctrl.data.spectrum.functions.bandwidth_nm_to_eV# bandwidth_nm_to_eV(bandwidth_nm, wavelength_nm)[source]# Convert a bandwidth in nm to a bandwidth in eV, at the specified wavelength bw_eV = hc / (lambda - bw_nm/2) - hc / (lambda + bw_nm/2) Parameters: bandwidth_nm – Bandwidth in nm wavelength_nm – Wavelength in nm Returns: bandwidth in eV