def METHOD_NAME(self, pos):
    # logging.getLogger('HWR').info("energy_changed %s" % str(pos))
    energy = pos
    try:
        if abs(energy - self.current_energy) > 1e-3:
            self.current_energy = energy
            self.current_wavelength = 12.3984 / energy
            if self.current_wavelength is not None:
                self.re_emit_values()
    except Exception:
        logging.getLogger("HWR").info(
            "energy_changed: error occured during an energy update"
        )