Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions src/atomate2/common/jobs/approx_neb.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,24 @@ def get_images_and_relax(
continue

# potential place for uuid logic if depth first is desirable
pathfinder_output = get_pathfinder_results(
ep_structures[ini_ind],
ep_structures[fin_ind],
working_ion,
n_images[hop_idx],
host_chgcar,
)

try:
pathfinder_output = get_pathfinder_results(
ep_structures[ini_ind],
ep_structures[fin_ind],
working_ion,
n_images[hop_idx],
host_chgcar,
)
except ValueError:
warnings.warn(
"NEBPathfinder can fail when the initial and final "
"images along a hop are nearly identical. "
"Excluding this hop.",
stacklevel=2,
)
continue

images_list = pathfinder_output["images"]

# add selective dynamics to structure
Expand Down