-
Notifications
You must be signed in to change notification settings - Fork 881
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
label
in Structure.as_dict()
is None
in the latest version
#3166
Comments
@njzjz Thanks for reporting. This is not intended. This was caused by #3135. @stefsmeets Could you take a look? |
Revert after materialsproject/pymatgen#3166 is fixed.
Thanks for pinging me! I added I can submit a PR to set the default to the species name if that is more sensible. |
Ah, I found the culprit: pymatgen/pymatgen/core/sites.py Lines 586 to 591 in 80aa781
|
Description
The latest version gives the
'label': None
inStructure.as_dict()
. I want to confirm if it is expected, as it breaks the tests in our downstream package.Repro
Expected behavior
In previous versions,
label
isH
.Environment
Relevant versions and platform info:
Additional context
The text was updated successfully, but these errors were encountered: