parameters: (self)
docstring: Remove the redundant parameters.
  
          This interface usually needs not to be used explicitly.
docstring_summary: Remove the redundant parameters.
docstring_tokens: Remove the redundant parameters .
function: def remove_redundant_parameters(self):
          """
          Remove the redundant parameters.
  
          This interface usually needs not to be used explicitly.
          """
          cells = self.cells_and_names()
          for _, cell in cells:
              params = cell._params.items()
              for param_name, param in list(params):
                  if param.name not in self.parallel_parameter_name_list:
                      cell._params.pop(param_name)
                      logger.info("remove the redundant parameter: %s", param.name)
                      continue
              cell_dict = cell.__dict__
              for key in cell_dict:
                  if isinstance(cell_dict[key], ParameterTuple):
                      param_tuple = cell_dict[key]
                      new_param_tuple = []
                      for param in param_tuple:
                          if param.name not in self.parallel_parameter_name_list:
                              logger.info("remove the redundant parameter: %s in ParameterTuple", param.name)
                              continue
                          new_param_tuple.append(param)
                      cell.__dict__[key] = ParameterTuple(new_param_tuple)
function_tokens: def remove_redundant_parameters ( self ) : cells = self . cells_and_names ( ) for _ , cell in cells : params = cell . _params . items ( ) for param_name , param in list ( params ) : if param . name not in self . parallel_parameter_name_list : cell . _params . pop ( param_name ) logger . info ( "remove the redundant parameter: %s" , param . name ) continue cell_dict = cell . __dict__ for key in cell_dict : if isinstance ( cell_dict [ key ] , ParameterTuple ) : param_tuple = cell_dict [ key ] new_param_tuple = [ ] for param in param_tuple : if param . name not in self . parallel_parameter_name_list : logger . info ( "remove the redundant parameter: %s in ParameterTuple" , param . name ) continue new_param_tuple . append ( param ) cell . __dict__ [ key ] = ParameterTuple ( new_param_tuple )