A comprehensive I/O validator for electronic structure calculations
Maintained. Last release 4 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install pymatgen-io-validationpymatgen-io-validation
This package is an extension to pymatgen for performing I/O validation. Specifically, this package checks for discrepancies between a specific calculation and a provided input set; it also checks for known bugs when certain input parameters are used in combination, alongside several other small checks. The motivation for creating this package was to ensure VASP calculations performed by groups outside of the Materials Project (MP) are compliant with MP data, thus enabling their raw data to be included in the MP Database.
Installation
You can install this package by simply running
pip install pymatgen-io-validation
Usage
For validating calculations from the raw files, run:
from pymatgen.io.validation import VaspValidator
validation_doc = VaspValidator.from_directory(path_to_vasp_calculation_directory)
In the above case, whether a calculation passes the validator can be accessed via validation_doc.valid. Moreover, reasons for an invalidated calculation can be accessed via validation_doc.reasons (this will be empty for valid calculations). Last but not least, warnings for potential issues (sometimes minor, sometimes major) can be accessed via validation_doc.warnings.
Contributors
- Matthew Kuner (lead), email: matthewkuner@gmail.com
- Aaron Kaplan
- Janosh Riebesell
- Jason Munro
Rationale
| Parameter | Reason |
|---|---|
| ADDGRID | ADDGRID must be set to False. MP uses ADDGRID = False, as the VASP manual states "please do not use this tag [ADDGRID] as default in all your calculations!". ADDGRID can affect the outputted forces, hence all calculations are thus required to have ADDGRID = False for compatibility. |