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

        Parameters
        ----------
        meas_name : str
            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
        else:
            meas_name = self.selected_measure

        data_request = 'CALCulate{}:DATA? FDATA'.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, ascii)

        if data:
            return np.array(data)
        else:
            raise InstrIOError(cleandoc('''Agilent PNA did not return the
                channel {} formatted data for meas {}'''.format(
                self._channel, meas_name)))
 Read formatted data for a measure.

        Parameters
        ----------
        meas_name : str
            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 formatted data for a measure.
Parameters

meas_name : str
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 formatted data for a measure . Parameters meas_name : str 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_formatted_data(self, meas_name=''):
        if meas_name:
            self.selected_measure = meas_name
        else:
            meas_name = self.selected_measure
        data_request = 'CALCulate{}:DATA? FDATA'.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, ascii)
        if data:
            return np.array(data)
        else:
            raise InstrIOError(cleandoc('''Agilent PNA did not return the
                channel {} formatted data for meas {}'''.format(
                self._channel, meas_name)))
def read_formatted_data ( self , meas_name = '' ) : if meas_name : self . selected_measure = meas_name else : meas_name = self . selected_measure data_request = 'CALCulate{}:DATA? FDATA' . 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 , ascii ) if data : return np . array ( data ) else : raise InstrIOError ( cleandoc ( '''Agilent PNA did not return the
                channel {} formatted data for meas {}''' . format ( self . _channel , meas_name ) ) )
Read formatted data for a measure.
Read formatted data for a measure .
""" Read formatted data for a measure.

        Parameters
        ----------
        meas_name : str
            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