irrad_control/devices/stage/xystage.py
def _check_reply(self, reply):
        """Method to check the reply of a command which has been issued to one of the axes"""

        # Get reply data and corresponding axis
        msg = "{}-axis: {}".format('x' if reply.device_address == 1 else 'y', reply.data)

        # Flags are either 'OK' or 'RJ'
        if reply.reply_flag != 'OK':
            logging.error("Command rejected by {}".format(msg))
            return False

        # Use logging to debug
        logging.debug("Command succeeded: {}".format(msg))
        return True
Method to check the reply of a command which has been issued to one of the axes
Method to check the reply of a command which has been issued to one of the axes
Method to check the reply of a command which has been issued to one of the axes
def _check_reply(self, reply):
        msg = "{}-axis: {}".format('x' if reply.device_address == 1 else 'y', reply.data)
        if reply.reply_flag != 'OK':
            logging.error("Command rejected by {}".format(msg))
            return False
        logging.debug("Command succeeded: {}".format(msg))
        return True
def _check_reply ( self , reply ) : msg = "{}-axis: {}" . format ( 'x' if reply . device_address == 1 else 'y' , reply . data ) if reply . reply_flag != 'OK' : logging . error ( "Command rejected by {}" . format ( msg ) ) return False logging . debug ( "Command succeeded: {}" . format ( msg ) ) return True
Method to check the reply of a command which has been issued to one of the axes
Method to check the reply of a command which has been issued to one of the axes
"""Method to check the reply of a command which has been issued to one of the axes""" # Get reply data and corresponding axis # Flags are either 'OK' or 'RJ' # Use logging to debug
self
reply