Looks like ed script works.

For zero dilution it uses square lattice with periodic boundary conditions which allows translation symmetry.