Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Improve unphysical (greater than 1) occupancy handling in
CifParser
and add missing site labelif not check_occu
#3819Improve unphysical (greater than 1) occupancy handling in
CifParser
and add missing site labelif not check_occu
#3819Changes from 4 commits
d9e6187
1b7071e
7cf5ba9
2a8a5dd
5236e70
28961a8
a15d53b
a525c24
09ddaa4
d674708
6bc6071
05c11d4
81cb4b8
1f3c5e5
c76726a
188b2d6
8abe428
d4703a1
d122b71
812bb8f
082e1f9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This warning should not be raised just because
if not check_occu
, it should really check the occupancy and only warn if the occupancy is "unphysical".The following code has already done this, so I would suggest removing it:
pymatgen/pymatgen/io/cif.py
Lines 1011 to 1018 in 2e1c301
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous error message might be misleading, as this fails because the occupancy is greater than
tolerance
, not1
.