Skip to content

Commit

Permalink
Merge pull request #243 from apax-hub/fix-cluster-MD
Browse files Browse the repository at this point in the history
Update io.py
  • Loading branch information
M-R-Schaefer authored Mar 13, 2024
2 parents 5e6fcc0 + ff65ee4 commit 2fd404c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apax/md/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def atoms_from_state(self, state, energy, nbr_kwargs):

atoms = Atoms(self.atomic_numbers, positions, momenta=momenta, cell=box)
atoms.cell = atoms.cell.T
atoms.pbc = np.diag(atoms.cell.array) > 1e-7
atoms.pbc = np.diag(atoms.cell.array) > 1e-6
atoms.calc = SinglePointCalculator(atoms, energy=float(energy), forces=forces)
return atoms

Expand All @@ -66,7 +66,7 @@ def __init__(
) -> None:
self.atomic_numbers = system.atomic_numbers
self.box = system.box
self.fractional = np.any(self.box < 1e-6)
self.fractional = np.any(self.box > 1e-6)
self.sampling_rate = sampling_rate
self.traj_path = traj_path
self.db = znh5md.io.DataWriter(self.traj_path)
Expand Down

0 comments on commit 2fd404c

Please sign in to comment.