Skip to content

Bugfix for Vasprun reading with POTCAR for chemical shift calculations#3204

Closed
MichaelWolloch wants to merge 7 commits intomaterialsproject:masterfrom
MichaelWolloch:master
Closed

Bugfix for Vasprun reading with POTCAR for chemical shift calculations#3204
MichaelWolloch wants to merge 7 commits intomaterialsproject:masterfrom
MichaelWolloch:master

Conversation

@MichaelWolloch
Copy link
Copy Markdown
Contributor

Summary

Major changes:

  • Fixes a bug updating the charges from POTCAR while reading a vasprun.xml file in the case of a chemical shift calculation
  • Slight update to the splitting of POTCARs when reading from file.
  • Added a test for the chemical shift vasprun.xml parsing with a POTCAR
  • Re-added a test for internal POTCAR hashes.

This work is a result of updating atomate to work with the newest pymatgen and custodian releases and figuring out a hard to spot bug that was present there since May. Please see hackingmaterials/atomate#778 (comment) for details.

Another discussion related to this was taking place in #3068. There the hashing system was (hotly) debated and the initial problem was fixed (afaik). I still think that this PR has a nicer version, which is easy to read and preserves the internal hashes. This is why I re-enabled that unit-test. However, I am fine with commenting that out again or use the new PMG_POTCAR_CHECKS environmental variable to make it conditional?

@janosh janosh added io Input/output functionality fix Bug fix PRs vasp Vienna Ab initio Simulation Package labels Aug 2, 2023
@shyuep
Copy link
Copy Markdown
Member

shyuep commented Apr 10, 2026

Thanks for your contribution. However, we have moved this to pymatgen-core. Please resubmit a PR there when ready.

@shyuep shyuep closed this Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix PRs io Input/output functionality vasp Vienna Ab initio Simulation Package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants