Skip to content

Commit 3819efc

Browse files
committed
Ensure supercell matrix is integer to avoid pymatgen expansion issues
1 parent e41f41a commit 3819efc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doped/generation.py

+1
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,7 @@ def __init__(
13881388
self.primitive_structure = primitive_structure
13891389
self.supercell_matrix = supercell_matrix
13901390

1391+
self.supercell_matrix = np.rint(self.supercell_matrix).astype(int) # round to nearest integer
13911392
self.primitive_structure = Structure.from_sites(
13921393
[site.to_unit_cell() for site in self.primitive_structure]
13931394
)

0 commit comments

Comments
 (0)