Example #1
0
 def move(self, _):
     """
     Move to all the beamline parameters in the mode or that have changed
     Args:
         _: dummy can be anything
     """
     STATUS_MANAGER.clear_all()
     if self.reinit_mode_on_move:
         self._init_params_from_mode()
     self._move_for_all_beamline_parameters()
Example #2
0
    def _move_for_single_beamline_parameters(self, request: RequestMoveEvent):
        """
        Moves starts from a single beamline parameter and move is to parameters sp read backs. If the
        request source is not in the mode then don't update any other parameters. Move to latest position.

        Args:
            request: request to move a single parameter; if source is None start from the beginning,
                otherwise start from source
        """
        STATUS_MANAGER.clear_all()
        logger.info("PARAMETER MOVE TRIGGERED (source: {})".format(
            request.source.name))
        if self._active_mode.has_beamline_parameter(request.source):
            parameters = self._beamline_parameters.values()
            parameters_in_mode = self._active_mode.get_parameters_in_mode(
                parameters, request.source)

            for beamline_parameter in parameters_in_mode:
                beamline_parameter.move_to_sp_rbv_no_callback()
        self._move_drivers()