irrad_control/devices/stage/xystage.py
def scan_row(self, row, speed=None, scan_params=None):
        """
        Method to scan a single row of a device. Uses info about scan parameters from scan_params dict.
        Does sanity checks. The actual scan is done in a separate thread which calls self._scan_row.

        Parameters
        ----------
        row : int:
            Integer of row which should be scanned
        speed : float, None
            Scan speed in mm/s or None. If None, current speed of x-axis is used for scanning
        scan_params : dict
            dict containing all the info for doing a scan of a rectangular area.
            If *scan_params* is None, use instance attribute self.scan_params instead.
        """

        # Scan parameters dict; if None, use instance attribute self.scan_params
        scan_params = scan_params if scan_params is not None else self.scan_params

        # Check input dict
        if not self._check_scan(scan_params):
            return

        # Check row is in scan_params['rows']
        if row not in scan_params['rows']:
            msg = "Row {} is not in known rows starting from {} to {}. Abort".format(row,
                                                                                     min(scan_params['rows'].keys()),
                                                                                     max(scan_params['rows'].keys()))
            logging.error(msg)
            return

        # Start scan in separate thread
        scan_thread = threading.Thread(target=self._scan_row, args=(row, speed, scan_params))
        scan_thread.start()

        Method to scan a single row of a device. Uses info about scan parameters from scan_params dict.
        Does sanity checks. The actual scan is done in a separate thread which calls self._scan_row.

        Parameters
        ----------
        row : int:
            Integer of row which should be scanned
        speed : float, None
            Scan speed in mm/s or None. If None, current speed of x-axis is used for scanning
        scan_params : dict
            dict containing all the info for doing a scan of a rectangular area.
            If *scan_params* is None, use instance attribute self.scan_params instead.
        
Method to scan a single row of a device. Uses info about scan parameters from scan_params dict.
Does sanity checks. The actual scan is done in a separate thread which calls self._scan_row.

Parameters

row : int:
Integer of row which should be scanned
speed : float, None
Scan speed in mm/s or None. If None, current speed of x-axis is used for scanning
scan_params : dict
dict containing all the info for doing a scan of a rectangular area.
If *scan_params* is None, use instance attribute self.scan_params instead.
Method to scan a single row of a device . Uses info about scan parameters from scan_params dict . Does sanity checks . The actual scan is done in a separate thread which calls self . _scan_row . Parameters row : int : Integer of row which should be scanned speed : float None Scan speed in mm / s or None . If None current speed of x - axis is used for scanning scan_params : dict dict containing all the info for doing a scan of a rectangular area . If * scan_params * is None use instance attribute self . scan_params instead .
def scan_row(self, row, speed=None, scan_params=None):
        scan_params = scan_params if scan_params is not None else self.scan_params
        if not self._check_scan(scan_params):
            return
        if row not in scan_params['rows']:
            msg = "Row {} is not in known rows starting from {} to {}. Abort".format(row,
                                                                                     min(scan_params['rows'].keys()),
                                                                                     max(scan_params['rows'].keys()))
            logging.error(msg)
            return
        scan_thread = threading.Thread(target=self._scan_row, args=(row, speed, scan_params))
        scan_thread.start()
def scan_row ( self , row , speed = None , scan_params = None ) : scan_params = scan_params if scan_params is not None else self . scan_params if not self . _check_scan ( scan_params ) : return if row not in scan_params [ 'rows' ] : msg = "Row {} is not in known rows starting from {} to {}. Abort" . format ( row , min ( scan_params [ 'rows' ] . keys ( ) ) , max ( scan_params [ 'rows' ] . keys ( ) ) ) logging . error ( msg ) return scan_thread = threading . Thread ( target = self . _scan_row , args = ( row , speed , scan_params ) ) scan_thread . start ( )
Method to scan a single row of a device.
Method to scan a single row of a device .
"""
        Method to scan a single row of a device. Uses info about scan parameters from scan_params dict.
        Does sanity checks. The actual scan is done in a separate thread which calls self._scan_row.

        Parameters
        ----------
        row : int:
            Integer of row which should be scanned
        speed : float, None
            Scan speed in mm/s or None. If None, current speed of x-axis is used for scanning
        scan_params : dict
            dict containing all the info for doing a scan of a rectangular area.
            If *scan_params* is None, use instance attribute self.scan_params instead.
        """ # Scan parameters dict; if None, use instance attribute self.scan_params # Check input dict # Check row is in scan_params['rows'] # Start scan in separate thread
self
row
speed
scan_params