exopy_hqc_legacy/instruments/drivers/visa/agilent_pna.py
def sweep_x_axis(self):
        """List of values on the Sweep X axis getter method.

        """
        sweep_type = self.sweep_type
        sweep_points = self.sweep_points
        if sweep_type == 'LIN':
            sweep_start = float(self._pna.query(
                'SENSe{}:FREQuency:STARt?'.format(self._channel)))*1e-9
            sweep_stop = float(self._pna.query(
                'SENSe{}:FREQuency:STOP?'.format(self._channel)))*1e-9
            return np.linspace(sweep_start, sweep_stop, sweep_points)
        elif sweep_type == 'POW':
            sweep_start = float(self._pna.query('SOURce{}:POWer:STARt?'
                                                .format(self._channel)))
            sweep_stop = float(self._pna.query('SOURce{}:POWer:STOP?'
                                               .format(self._channel)))
            return np.linspace(sweep_start, sweep_stop, sweep_points)
        elif sweep_type == 'LOG':
            sweep_start = float(self._pna.query('SENSe{}:FREQuency:STARt?'
                                                .format(self._channel)))
            sweep_stop = float(self._pna.query('SENSe{}:FREQuency:STOP?'
                                               .format(self._channel)))
            return np.logspace(sweep_start*1e-9, sweep_stop*1e-9, sweep_points)
        else:
            raise InstrIOError(cleandoc('''Sweep type of PNA not yet
                supported for channel {}'''.format(self._channel)))
List of values on the Sweep X axis getter method.

        
List of values on the Sweep X axis getter method.
List of values on the Sweep X axis getter method .
def sweep_x_axis(self):
        sweep_type = self.sweep_type
        sweep_points = self.sweep_points
        if sweep_type == 'LIN':
            sweep_start = float(self._pna.query(
                'SENSe{}:FREQuency:STARt?'.format(self._channel)))*1e-9
            sweep_stop = float(self._pna.query(
                'SENSe{}:FREQuency:STOP?'.format(self._channel)))*1e-9
            return np.linspace(sweep_start, sweep_stop, sweep_points)
        elif sweep_type == 'POW':
            sweep_start = float(self._pna.query('SOURce{}:POWer:STARt?'
                                                .format(self._channel)))
            sweep_stop = float(self._pna.query('SOURce{}:POWer:STOP?'
                                               .format(self._channel)))
            return np.linspace(sweep_start, sweep_stop, sweep_points)
        elif sweep_type == 'LOG':
            sweep_start = float(self._pna.query('SENSe{}:FREQuency:STARt?'
                                                .format(self._channel)))
            sweep_stop = float(self._pna.query('SENSe{}:FREQuency:STOP?'
                                               .format(self._channel)))
            return np.logspace(sweep_start*1e-9, sweep_stop*1e-9, sweep_points)
        else:
            raise InstrIOError(cleandoc('''Sweep type of PNA not yet
                supported for channel {}'''.format(self._channel)))
def sweep_x_axis ( self ) : sweep_type = self . sweep_type sweep_points = self . sweep_points if sweep_type == 'LIN' : sweep_start = float ( self . _pna . query ( 'SENSe{}:FREQuency:STARt?' . format ( self . _channel ) ) ) * 1e-9 sweep_stop = float ( self . _pna . query ( 'SENSe{}:FREQuency:STOP?' . format ( self . _channel ) ) ) * 1e-9 return np . linspace ( sweep_start , sweep_stop , sweep_points ) elif sweep_type == 'POW' : sweep_start = float ( self . _pna . query ( 'SOURce{}:POWer:STARt?' . format ( self . _channel ) ) ) sweep_stop = float ( self . _pna . query ( 'SOURce{}:POWer:STOP?' . format ( self . _channel ) ) ) return np . linspace ( sweep_start , sweep_stop , sweep_points ) elif sweep_type == 'LOG' : sweep_start = float ( self . _pna . query ( 'SENSe{}:FREQuency:STARt?' . format ( self . _channel ) ) ) sweep_stop = float ( self . _pna . query ( 'SENSe{}:FREQuency:STOP?' . format ( self . _channel ) ) ) return np . logspace ( sweep_start * 1e-9 , sweep_stop * 1e-9 , sweep_points ) else : raise InstrIOError ( cleandoc ( '''Sweep type of PNA not yet
                supported for channel {}''' . format ( self . _channel ) ) )
List of values on the Sweep X axis getter method.
List of values on the Sweep X axis getter method .
"""List of values on the Sweep X axis getter method.

        """
self