parameters: (runs_loader, combinator, delete_runs=True)
return_statement: return generator
docstring: Creates a drange map generator, which creates a drange map from a supplied string of runs.
  
      :param runs_loader: The loader to use in loading the runs.
      :param combinator:  The combinator used to combine the runs.
      :param delete_runs: If true, deletes the loaded runs after addition to the drange map.
      :return:            A drange map generator.
docstring_summary: Creates a drange map generator, which creates a drange map from a supplied string of runs.
docstring_tokens: Creates a drange map generator which creates a drange map from a supplied string of runs .
function: def create_drange_map_generator(runs_loader, combinator, delete_runs=True):
      """
      Creates a drange map generator, which creates a drange map from a supplied string of runs.
  
      :param runs_loader: The loader to use in loading the runs.
      :param combinator:  The combinator used to combine the runs.
      :param delete_runs: If true, deletes the loaded runs after addition to the drange map.
      :return:            A drange map generator.
      """
  
      def generator(runs, transform):
          drange_map = DRangeToWorkspaceMap()
          workspace_names, _, _ = runs_loader(runs)
          drange_map.add_workspaces([transform(workspace_name) for workspace_name in workspace_names], combinator)
          if delete_runs:
              delete_workspaces(workspace_names)
          return drange_map
  
      return generator
function_tokens: def create_drange_map_generator ( runs_loader , combinator , delete_runs = True ) : def generator ( runs , transform ) : drange_map = DRangeToWorkspaceMap ( ) workspace_names , _ , _ = runs_loader ( runs ) drange_map . add_workspaces ( [ transform ( workspace_name ) for workspace_name in workspace_names ] , combinator ) if delete_runs : delete_workspaces ( workspace_names ) return drange_map return generator