parameters: (config, equal_output_map)
return_statement: return output_dict
docstring: Makes an output dict with the generated results.
  
      :param config: configuration object, expects that it was processed by
                     check_config
  
      :param equal_output_map: dict of files with equal content,
                               expects format generated by gen_equal_output_map
      :return: output dict, format:
               copies objects option_settings, options and in_files (renamed as
               files) from the config object. Additionally has the object groups
               that holds gourp - file - settings combination data
               format:
                  groups = [ [fileIdx0[
                                 [settingIdx0, settingIdx1, ...],
                                 [settingIdx0, settingIdx1, ...] ] ]
                             [fileIdx1[
                                 [settingIdx0, settingIdx1, ...],
                                 [settingIdx0, settingIdx1, ...] ] ]
                           ]
docstring_summary: Makes an output dict with the generated results.
docstring_tokens: Makes an output dict with the generated results .
function: def gen_output_dict(config, equal_output_map):
      """Makes an output dict with the generated results.
  
      :param config: configuration object, expects that it was processed by
                     check_config
  
      :param equal_output_map: dict of files with equal content,
                               expects format generated by gen_equal_output_map
      :return: output dict, format:
               copies objects option_settings, options and in_files (renamed as
               files) from the config object. Additionally has the object groups
               that holds gourp - file - settings combination data
               format:
                  groups = [ [fileIdx0[
                                 [settingIdx0, settingIdx1, ...],
                                 [settingIdx0, settingIdx1, ...] ] ]
                             [fileIdx1[
                                 [settingIdx0, settingIdx1, ...],
                                 [settingIdx0, settingIdx1, ...] ] ]
                           ]
      """
  
      output_dict = {"option_settings": config["option_settings"],
                     "options": config["options"],
                     "files": config["in_files"],
                     "groups": []}
  
      options_len = len(output_dict["options"])
      files_len = len(output_dict["files"])
  
      for key in equal_output_map:
          group_dict = []
          for file_arr_idx in range(files_len):
              group_dict.append([])
  
          for list_value in equal_output_map[key]:
              split = list_value.rsplit("/", 1)
              split = split[len(split) - 1].split("__")
              split_len = len(split)
  
              # n option names + n option values + file idx
              if split_len < options_len * 2 + 1:
                  print(" wrong split len on  %s\n" % list_value, file=stderr)
                  continue
  
              file_idx = int(split[split_len - 1])
              file_combinations = [int(i) for i in split[options_len:split_len-1]]
  
              group_dict[file_idx].append(file_combinations)
  
          output_dict["groups"].append(group_dict)
  
      return output_dict
function_tokens: def gen_output_dict ( config , equal_output_map ) : output_dict = { "option_settings" : config [ "option_settings" ] , "options" : config [ "options" ] , "files" : config [ "in_files" ] , "groups" : [ ] } options_len = len ( output_dict [ "options" ] ) files_len = len ( output_dict [ "files" ] ) for key in equal_output_map : group_dict = [ ] for file_arr_idx in range ( files_len ) : group_dict . append ( [ ] ) for list_value in equal_output_map [ key ] : split = list_value . rsplit ( "/" , 1 ) split = split [ len ( split ) - 1 ] . split ( "__" ) split_len = len ( split ) # n option names + n option values + file idx if split_len < options_len * 2 + 1 : print ( " wrong split len on  %s\n" % list_value , file = stderr ) continue file_idx = int ( split [ split_len - 1 ] ) file_combinations = [ int ( i ) for i in split [ options_len : split_len - 1 ] ] group_dict [ file_idx ] . append ( file_combinations ) output_dict [ "groups" ] . append ( group_dict ) return output_dict