def __init__(self, name): AbstractEnergy.__init__(self, name) self.ready_event = None self.undulator_gaps = () self.ctrl_bytes = None self.bragg_break_status = None self.do_beam_alignment = False self.delta = 0 self._tunable = True self._energy_value = None self._wavelength_value = None self._energy_limits = () self._moving = None self.chan_energy = None self.chan_limit_low = None self.chan_limit_high = None self.chan_status = None self.chan_undulator_gaps = None self.chan_status_bragg_break = None self.cmd_set_energy = None self.cmd_energy_ctrl_byte = None self.cmd_set_break_bragg = None self.cmd_release_break_bragg = None self.cmd_reset_perp = None
def init(self): """Initialisation""" AbstractEnergy.init(self) self._energy_motor = self.getObjectByRole("energy_motor") self._bliss_session = self.getObjectByRole("bliss") self._state = HardwareObjectState.READY if self._energy_motor: self._state = self._energy_motor.get_state() self._energy_motor.connect("valueChanged", self.update_value) self._energy_motor.connect("stateChanged", self.update_state)
def init(self): """Initialisation""" AbstractEnergy.init(self) self._energy_motor = self.get_object_by_role("energy_motor") self._bliss_session = self.get_object_by_role("bliss") self.update_state(HardwareObjectState.READY) if self._energy_motor: self.update_state(self._energy_motor.get_state()) self._energy_motor.connect("valueChanged", self.update_value) self._energy_motor.connect("stateChanged", self.update_state) if self.read_only: self._nominal_value = float(self.get_property("energy", 0))
def __init__(self, name): AbstractEnergy.__init__(self, name) self._energy_motor = None self._bliss_session = None self._cmd_execution = None
def __init__(self, name): AbstractEnergy.__init__(self, name)