-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve element mismatch handling with POTCAR for `Poscar.from_file/s…
…tr` (#4143) * insert warning for element mismatch * try value error and see if there's any breakage * fix typo in comment * revise message to cover cases where default_name is given as arg * NEED DISCUSSION: re-raise ValueError * add todo tag * clean up POTCAR element check * recover code logic * add comment * fix mismatch in unit test * improve glob logic * add some test, pmg test cannot be parametrized * fix warning and exception logic * remove dummy POSCAR * fix test_from_str_default_names * fix test_from_file_potcar_overwrite_elements * suppress many expected warnings * fix condition * clean up comment * add superset * also test elements * clean up overwrite logic for readability * recover vasp5or6_symbols tag * WIP: halfed done logic cleanup * clean up comment * fix test across OS owing to rounding * finish VASP 4 overwrite test * reduce code repetition * enhance test a tiny bit --------- Signed-off-by: Shyue Ping Ong <[email protected]> Co-authored-by: Shyue Ping Ong <[email protected]>
- Loading branch information
1 parent
cc63b81
commit 40100e9
Showing
2 changed files
with
168 additions
and
26 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