Skip to content

Commit bc9e0a9

Browse files
committed
A new better comment on the save_extxyz subroutine
1 parent 45caf0a commit bc9e0a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/Ensemble.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ def save_extxyz(self, filename, append_mode = True):
822822
for i, s in enumerate(self.structures):
823823
energy = self.energies[i] * Rydberg # Ry -> eV
824824
forces = self.forces[i, :, :] * Rydberg # Ry/A -> eV/A
825-
stress = -self.stresses[i, :, :] * Rydberg / Bohr**3 # Ry/Bohr^3 -> eV/A^3
825+
stress = -self.stresses[i, :, :] * Rydberg / Bohr**3 # Ry/Bohr^3 -> eV/A^3 (with ase conventions on sign)
826826
struct = s.get_ase_atoms()
827827

828828
calculator = ase.calculators.singlepoint.SinglePointCalculator(struct, energy = energy,

0 commit comments

Comments
 (0)