exopy_hqc_legacy/instruments/drivers/visa/agilent_pna.py
def read_raw_data(self, meas_name=''):
        """ Read raw data for a measure.

        Parameters
        ----------
        meas_name : str, optional
            Name of the measure which should be read. If not provided the data
            for the currently selected measure will be read. This measure will
            be the new selected measure once this function returns.

        Returns
        -------
        data : numpy.array
            Array of Floating points holding the data.

        """
        if meas_name:
            self.selected_measure = meas_name

        data_request = 'CALCulate{}:DATA? SDATA'.format(self._channel)
        if self._pna.data_format == 'REAL,32':
            data = self._pna.query_binary_values(data_request, 'f')

        elif self._pna.data_format in ('REAL,64', 'REAL,+64'):
            data = self._pna.query_binary_values(data_request, 'd')

        else:
            data = self._pna.query_ascii_values(data_request)

        if not meas_name:
            meas_name = self.selected_measure

        if data:
            aux = np.array(data)
            return aux[::2] + 1j*aux[1::2]
        else:
            raise InstrIOError(cleandoc('''Agilent PNA did not return the
                channel {} formatted data for meas {}'''.format(
                self._channel, meas_name)))
 Read raw data for a measure.

        Parameters
        ----------
        meas_name : str, optional
            Name of the measure which should be read. If not provided the data
            for the currently selected measure will be read. This measure will
            be the new selected measure once this function returns.

        Returns
        -------
        data : numpy.array
            Array of Floating points holding the data.

        
Read raw data for a measure.
Parameters

meas_name : str, optional
Name of the measure which should be read. If not provided the data
for the currently selected measure will be read. This measure will
be the new selected measure once this function returns.

Returns

data : numpy.array
Array of Floating points holding the data.
Read raw data for a measure . Parameters meas_name : str optional Name of the measure which should be read . If not provided the data for the currently selected measure will be read . This measure will be the new selected measure once this function returns . Returns data : numpy . array Array of Floating points holding the data .
def read_raw_data(self, meas_name=''):
        if meas_name:
            self.selected_measure = meas_name
        data_request = 'CALCulate{}:DATA? SDATA'.format(self._channel)
        if self._pna.data_format == 'REAL,32':
            data = self._pna.query_binary_values(data_request, 'f')
        elif self._pna.data_format in ('REAL,64', 'REAL,+64'):
            data = self._pna.query_binary_values(data_request, 'd')
        else:
            data = self._pna.query_ascii_values(data_request)
        if not meas_name:
            meas_name = self.selected_measure
        if data:
            aux = np.array(data)
            return aux[::2] + 1j*aux[1::2]
        else:
            raise InstrIOError(cleandoc('''Agilent PNA did not return the
                channel {} formatted data for meas {}'''.format(
                self._channel, meas_name)))
def read_raw_data ( self , meas_name = '' ) : if meas_name : self . selected_measure = meas_name data_request = 'CALCulate{}:DATA? SDATA' . format ( self . _channel ) if self . _pna . data_format == 'REAL,32' : data = self . _pna . query_binary_values ( data_request , 'f' ) elif self . _pna . data_format in ( 'REAL,64' , 'REAL,+64' ) : data = self . _pna . query_binary_values ( data_request , 'd' ) else : data = self . _pna . query_ascii_values ( data_request ) if not meas_name : meas_name = self . selected_measure if data : aux = np . array ( data ) return aux [ : : 2 ] + 1j * aux [ 1 : : 2 ] else : raise InstrIOError ( cleandoc ( '''Agilent PNA did not return the
                channel {} formatted data for meas {}''' . format ( self . _channel , meas_name ) ) )
Read raw data for a measure.
Read raw data for a measure .
""" Read raw data for a measure.

        Parameters
        ----------
        meas_name : str, optional
            Name of the measure which should be read. If not provided the data
            for the currently selected measure will be read. This measure will
            be the new selected measure once this function returns.

        Returns
        -------
        data : numpy.array
            Array of Floating points holding the data.

        """
self
meas_name