Skip to content

Commit 576c44b

Browse files
committed
add info dict to ase structures
1 parent 6e4b4fc commit 576c44b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dpdata/plugins/ase.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ def to_labeled_system(self, data, *args, **kwargs):
159159
results['stress'] = -data["virials"][ii] / vol
160160

161161
structure.calc = SinglePointCalculator(structure, **results)
162+
structure.info['energy'] = data["energies"][ii]
163+
structure.info['forces'] = data["forces"][ii]
164+
structure.info['virials'] = data["virials"][ii]
162165
structures.append(structure)
163166

164167
return structures

0 commit comments

Comments
 (0)