def add_scanner_param(self, name, scanner_param):
        """ Add a scanner parameter. """

        assert name
        assert scanner_param
        self.scanner_params[name] = scanner_param
        command = self.commands.get('start_scan')
        command['elements'] = {
            'scanner_params':
                {k: v['name'] for k, v in self.scanner_params.items()}}
def add_scanner_param ( self , name , scanner_param ) : assert name assert scanner_param self . scanner_params [ name ] = scanner_param command = self . commands . get ( 'start_scan' ) command [ 'elements' ] = { 'scanner_params' : { k : v [ 'name' ] for k , v in self . scanner_params . items ( ) } }
Add a scanner parameter.