Skip to content

Commit

Permalink
Merge pull request #355 from ProodjePindakaas/patch-2
Browse files Browse the repository at this point in the history
Update FakeDFT to only import relevant frame
  • Loading branch information
YuuuXie authored Jul 11, 2023
2 parents af8be62 + 3bb994b commit 3aaf8b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flare/md/fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ def calculate(

step = atoms.info.get("step", 0)

fake_trajectory = read("All_Data.xyz", index=":", format="extxyz")
fake_frame = fake_trajectory[step]
fake_frame = read("All_Data.xyz", index=step, format="extxyz")
assert np.allclose(atoms.positions, fake_frame.positions), (
atoms.positions[0],
fake_frame.positions[0],
Expand Down

0 comments on commit 3aaf8b9

Please sign in to comment.