def a_group(trans,rots):
    """This subroutine combines that translations of the lattice with the
    rotatians of the lattice.

    Args:
        trans (list): A 2D array where each row is an translation
          of the lattice.

        rots (list): A 3D array. Each row's first entry is the
          site permutations and the second entry is the arrow
          permutations.

    Returns:
        groupi (list): The full symmetry group.
    """
    groupi = []
    for i in trans:
        for j in rots:
            c = []            
            c.append([j[0][i[l]] for l in range(0,len(i))])
            c.append(j[1])
            if c not in groupi:
                groupi.append(c)

    return(groupi)