Skip to content

Commit c9deb10

Browse files
authored
bugfix: add pbc information from ase atoms (#358)
1 parent 9dd3b63 commit c9deb10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dpdata/plugins/ase.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def from_system(self, atoms: "ase.Atoms", **kwargs) -> dict:
4646
'cells': np.array([cells]).astype('float32'),
4747
'coords': np.array([coords]).astype('float32'),
4848
'orig': np.zeros(3),
49+
'nopbc': not np.any(atoms.get_pbc()),
4950
}
5051
return info_dict
5152

0 commit comments

Comments
 (0)