-
Notifications
You must be signed in to change notification settings - Fork 873
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
* 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.
- Loading branch information
Showing
2 changed files
with
16 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