qcodes/instrument/function.py
def validate(self, *args: Any) -> None:
        """
        Check that all arguments to this Function are allowed.

        Args:
            *args: Variable length argument list, passed to the call_cmd
        """
        if self._instrument:
            func_name = (getattr(self._instrument, 'name', '') or
                         str(self._instrument.__class__)) + '.' + self.name
        else:
            func_name = self.name

        if len(args) != self._arg_count:
            raise TypeError(
                '{} called with {} args but requires {}'.format(
                    func_name, len(args), self._arg_count))

        validate_all(*zip(self._args, args), context='Function: ' + func_name)

        Check that all arguments to this Function are allowed.

        Args:
            *args: Variable length argument list, passed to the call_cmd
        
Check that all arguments to this Function are allowed.
Check that all arguments to this Function are allowed .
def validate(self, *args: Any) -> None:
        if self._instrument:
            func_name = (getattr(self._instrument, 'name', '') or
                         str(self._instrument.__class__)) + '.' + self.name
        else:
            func_name = self.name
        if len(args) != self._arg_count:
            raise TypeError(
                '{} called with {} args but requires {}'.format(
                    func_name, len(args), self._arg_count))
        validate_all(*zip(self._args, args), context='Function: ' + func_name)
def validate ( self , * args : Any ) -> None : if self . _instrument : func_name = ( getattr ( self . _instrument , 'name' , '' ) or str ( self . _instrument . __class__ ) ) + '.' + self . name else : func_name = self . name if len ( args ) != self . _arg_count : raise TypeError ( '{} called with {} args but requires {}' . format ( func_name , len ( args ) , self . _arg_count ) ) validate_all ( * zip ( self . _args , args ) , context = 'Function: ' + func_name )
Check that all arguments to this Function are allowed.
Check that all arguments to this Function are allowed .
"""
        Check that all arguments to this Function are allowed.

        Args:
            *args: Variable length argument list, passed to the call_cmd
        """
self
args
Any
*args
Variable length argument list, passed to the call_cmd
Variable length argument list passed to the call_cmd