Skip to content

Commit f758aaa

Browse files
committed
Added warning for case with backward_compatibility True
1 parent 6579a5b commit f758aaa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pymatgen/io/lobster/lobsterenv.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,12 @@ def _find_environments(
10171017
)
10181018
)
10191019
else:
1020+
warnings.warn(
1021+
"You are using an older version for neighbor detection that might not consider rare "
1022+
"LOBSTER edge cases. Consider switching LobsterNeighbors().backward_compatibility "
1023+
"to False for more advanced neighbor detection.",
1024+
stacklevel=2,
1025+
)
10201026
comparison = (
10211027
np.isclose(dist, list_distances[neigh_idx], rtol=1e-4)
10221028
and copied_neighbors_from_ICOHPs[dist_idx] == index_here2

0 commit comments

Comments
 (0)