exopy_hqc_legacy/instruments/drivers/visa/agilent_pna.py
def run_averaging(self, aver_count=''):
        """ Restart averaging on the channel and wait until it is over

        Parameters
        ----------
        aver_count : str, optional
            Number of averages to perform. Default value is the current one
        """
        self._pna.trigger_source = 'Immediate'
        self.sweep_mode = 'Hold'
        self._pna.clear_averaging()

        if aver_count:
            self.average_count = aver_count

        self.average_state = 1

        for i in range(0, int(self.average_count)):
            self._pna.write('sense{}:sweep:mode gro'.format(self._channel))

            while True:
                try:
                    done = int(self._pna.query('*OPC?'))
                    break
                except VisaIOError as e:
                    # Getting an timeout here simply means that the
                    # PNA isn't done averaging
                    if e.error_code == constants.StatusCode.error_timeout:
                        continue
                    raise

            if done != 1:
                raise InstrError(cleandoc('''Agilent PNA did could  not perform
                the average on channel {} '''.format(self._channel)))
 Restart averaging on the channel and wait until it is over

        Parameters
        ----------
        aver_count : str, optional
            Number of averages to perform. Default value is the current one
        
Restart averaging on the channel and wait until it is over
Parameters

aver_count : str, optional
Number of averages to perform. Default value is the current one
Restart averaging on the channel and wait until it is over Parameters aver_count : str optional Number of averages to perform . Default value is the current one
def run_averaging(self, aver_count=''):
        self._pna.trigger_source = 'Immediate'
        self.sweep_mode = 'Hold'
        self._pna.clear_averaging()
        if aver_count:
            self.average_count = aver_count
        self.average_state = 1
        for i in range(0, int(self.average_count)):
            self._pna.write('sense{}:sweep:mode gro'.format(self._channel))
            while True:
                try:
                    done = int(self._pna.query('*OPC?'))
                    break
                except VisaIOError as e:
                    if e.error_code == constants.StatusCode.error_timeout:
                        continue
                    raise
            if done != 1:
                raise InstrError(cleandoc('''Agilent PNA did could  not perform
                the average on channel {} '''.format(self._channel)))
def run_averaging ( self , aver_count = '' ) : self . _pna . trigger_source = 'Immediate' self . sweep_mode = 'Hold' self . _pna . clear_averaging ( ) if aver_count : self . average_count = aver_count self . average_state = 1 for i in range ( 0 , int ( self . average_count ) ) : self . _pna . write ( 'sense{}:sweep:mode gro' . format ( self . _channel ) ) while True : try : done = int ( self . _pna . query ( '*OPC?' ) ) break except VisaIOError as e : if e . error_code == constants . StatusCode . error_timeout : continue raise if done != 1 : raise InstrError ( cleandoc ( '''Agilent PNA did could  not perform
                the average on channel {} ''' . format ( self . _channel ) ) )
Restart averaging on the channel and wait until it is over
Parameters
Restart averaging on the channel and wait until it is over Parameters
""" Restart averaging on the channel and wait until it is over

        Parameters
        ----------
        aver_count : str, optional
            Number of averages to perform. Default value is the current one
        """ # Getting an timeout here simply means that the # PNA isn't done averaging
self
aver_count