Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
PKUfjh committed May 24, 2022
1 parent 576c44b commit 31438f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpdata/plugins/ase.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ def to_labeled_system(self, data, *args, **kwargs):
vol = structure.get_volume()
# results['stress'] = data["virials"][ii] / (v_pref * vol)
results['stress'] = -data["virials"][ii] / vol
structure.info['virials'] = data["virials"][ii]

structure.calc = SinglePointCalculator(structure, **results)
structure.info['energy'] = data["energies"][ii]
structure.info['forces'] = data["forces"][ii]
structure.info['virials'] = data["virials"][ii]
structures.append(structure)

return structures

0 comments on commit 31438f0

Please sign in to comment.