parameters: (group_names, group_index=0)
return_statement: return MuonGroup(group_name=new_group_name, detector_ids=[1])
docstring: Create an empty MuonGroup appropriate for adding to the current grouping table.
docstring_summary: Create an empty MuonGroup appropriate for adding to the current grouping table.
docstring_tokens: Create an empty MuonGroup appropriate for adding to the current grouping table .
function: def construct_empty_group(group_names, group_index=0):
      """
      Create an empty MuonGroup appropriate for adding to the current grouping table.
      """
      new_group_name = "group_" + str(group_index)
      while new_group_name in group_names:
          # modify the name until it is unique
          group_index += 1
          new_group_name = "group_" + str(group_index)
      return MuonGroup(group_name=new_group_name, detector_ids=[1])
function_tokens: def construct_empty_group ( group_names , group_index = 0 ) : new_group_name = "group_" + str ( group_index ) while new_group_name in group_names : # modify the name until it is unique group_index += 1 new_group_name = "group_" + str ( group_index ) return MuonGroup ( group_name = new_group_name , detector_ids = [ 1 ] )