def METHOD_NAME(self):
    """
    Returns current energy in keV
    :return: float
    """
    value = self._default_energy
    if self.chan_energy is not None:
        try:
            value = self.chan_energy.getValue()
            return value / 1000
        except Exception:
            logging.getLogger("HWR").exception(
                "Energy: could not read current energy"
            )
            return None
    return value