Skip to content

Commit 418e0ce

Browse files
authored
fix compatibility with the latest pymatgen (#1126)
Fix #1108. Note: tests do not cover this case.
1 parent 57a8c16 commit 418e0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpgen/data/gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def make_super_cell_poscar(jdata):
362362
# minor bug for element symbol behind the coordinates
363363
from_struct = Structure.from_file(from_file)
364364
from_struct.make_supercell(super_cell)
365-
from_struct.to("poscar", to_file)
365+
from_struct.to(to_file, "poscar")
366366

367367
# make system dir (copy)
368368
lines = open(to_file, "r").read().split("\n")

0 commit comments

Comments
 (0)