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

Pymatgen interface: species_and_occu deprecated #3297

Closed
greschd opened this issue Sep 4, 2019 · 0 comments · Fixed by #3480
Closed

Pymatgen interface: species_and_occu deprecated #3297

greschd opened this issue Sep 4, 2019 · 0 comments · Fixed by #3480
Assignees
Labels
good first issue Issues that should be relatively easy to fix also for beginning contributors priority/nice-to-have topic/dependencies
Milestone

Comments

@greschd
Copy link
Member

greschd commented Sep 4, 2019

When creating pymatgen structures, I get the following deprecation warning:

  /home/a-dogres/programming/aiida/aiida-core/aiida/orm/nodes/data/structure.py:908: DeprecationWarning: species_and_occu is deprecated
  Use site.species instead. This will be deprecated with effect from pymatgen 2020.
    'weights': [x for x in site.species_and_occu.values()],

I would guess this should be a pretty simple replacement. What we should be careful about is when the site.species interface was introduced, if we want to maintain compatibility with older pymatgen versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Issues that should be relatively easy to fix also for beginning contributors priority/nice-to-have topic/dependencies
Projects
None yet
3 participants