When creating a grain boundary the repetition is not functional. For example:
System.create.defect.grain_boundary(axis=[1,-1,0], sigma=3, gb_plane=[1,1,-2],
element = 'Fe',
structure = 'bcc',
lattice_constant = 2.83441,
uc_a=2, uc_b=2,
repetitions=(1, 1, 2),
graph = kg
)