Skip to content

Commit

Permalink
make tests independent of the sparc-x-api version
Browse files Browse the repository at this point in the history
  • Loading branch information
alchem0x2A committed Jan 25, 2024
1 parent 8af16b9 commit 2be762d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Socket_tests/Atom_sort_test/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ def sparc_socket():
atoms.calc = calc
opt = BFGS(atoms, trajectory="sparc-socket.traj")
opt.run(fmax=0.03)
images = read("h2o_test/", ":")
assert len(images) < 10
return atoms.copy()
assert opt.get_number_of_steps() <= 10 # For the correct mesh spacing, opt should be very close
return


def main():
Expand Down

0 comments on commit 2be762d

Please sign in to comment.