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

VaspInputSet.write_input: Improve error message #3999

Merged
merged 2 commits into from
Aug 15, 2024

Commits on Aug 14, 2024

  1. 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.
    yantar92 committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    975d311 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d48e67c View commit details
    Browse the repository at this point in the history