Skip to content

Commit

Permalink
pre-commit auto-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 10, 2025
1 parent 580224a commit cc231e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/quacc/recipes/newtonnet/ts.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ def neb_job(

for image in images:
image.calc = NewtonNet(**calc_flags)
if 'max_steps' in neb_flags:
max_steps = neb_flags['max_steps']
del neb_flags['max_steps']
if "max_steps" in neb_flags:
max_steps = neb_flags["max_steps"]
del neb_flags["max_steps"]
dyn = run_neb(images, max_steps=max_steps, neb_kwargs=neb_flags)
else:
dyn = run_neb(images, neb_kwargs=neb_flags)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ def setup_test_environment():
def test_neb_job_linear(setup_test_environment):
reactant, product = setup_test_environment

neb_summary = neb_job(reactant, product, interpolation_method="linear", neb_kwargs={'max_steps': 10})
neb_summary = neb_job(
reactant, product, interpolation_method="linear", neb_kwargs={"max_steps": 10}
)

assert len(neb_summary["neb_results"]["trajectory_results"]) == 20
assert neb_summary["relax_reactant"]["atoms"].positions[0, 0] == pytest.approx(
Expand Down

0 comments on commit cc231e2

Please sign in to comment.