Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note to documentation for usage of CrystalNN #3764

Merged
merged 5 commits into from
Apr 18, 2024
Merged
Changes from 2 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
3 changes: 3 additions & 0 deletions pymatgen/analysis/local_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -3794,6 +3794,9 @@ class CrystalNN(NearNeighbors):
algorithm can also modify probability using smooth distance cutoffs as well as Pauling
electronegativity differences. The output can either be the most probable coordination
environment or a weighted list of coordination environments.
Please note that the default weights have been benchmarked for inorganic crystal structures.
For MOFs or molecular, weights and cutoffs likely will need to be adapted.
JaGeo marked this conversation as resolved.
Show resolved Hide resolved
CrystalNN(x_diff_weight = 1.5, search_cutoff = 4.5)
JaGeo marked this conversation as resolved.
Show resolved Hide resolved
"""

NNData = namedtuple("NNData", ["all_nninfo", "cn_weights", "cn_nninfo"])
Expand Down
Loading