-
Notifications
You must be signed in to change notification settings - Fork 860
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VaspInputSet.write_input: Improve error message (#3999)
* VaspInputSet.write_input: Improve error message * src/pymatgen/io/vasp/inputs.py (PotcarSingle.from_symbol_and_functional): Raise custom PMG_VASP_PSP_DIR_Error when PMG_VASP_PSP_DIR is not configured. (PMG_VASP_PSP_DIR_Error): New error inheriting from ValueError. * src/pymatgen/io/vasp/sets.py (VaspInputSet.write_input): When PMG_VASP_PSP_DIR_Error provide a more helpful message advicing that potcar_spec argument can be used. The idea is to provide instructions for users with no VASP license who are also not aware about potcar_spec argument. * pre-commit auto-fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b7b7389
commit 1a4c538
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters