-
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.
Make
Incar
keys case insensitive, fix init Incar
from dict val pr…
…ocessing for str/float/int (#4122) * move ENCUT from int to float list * remove str case sensitivity in check_params * fix return type annotation * fix unit test failure * use original key for warning msg * add duplicate check in check_params * add test first, issue not fixed yet * init from dict also use setter method and fix val filter logic * relocate test_from_file_and_from_dict * Revert "init from dict also use setter method and fix val filter logic" This reverts commit adcdba7. * remove seemingly unused monkeypatch * tweak type * make module level var all cap * casting to list doesn't seem necessary, remain iterator for lazy eval * add docstring to clarify parse list * remove duplicate check * reduce indentation level * remove docstring of warn that doesn't exist * fix typo in incar tag ECUT -> ENCUT * inherit from UserDict, and make more ops case insensitive * also override del and in methdos * issue warning for duplicate keys * enhance warning check * tweak docstring * fix type of float/int casting * enhance test for from_dict consistency check * relocate duplicate check to setter so that both from str and dict would be checked * fix index error for vasprun * move duplicate warning to init otherwise get false pos when update * enhance unit test from type cast from dict * remove unnecessary get default * remove unnecessary type cast in check_params * tweak Incar docstring --------- Co-authored-by: Shyue Ping Ong <[email protected]>
- Loading branch information
1 parent
7b02bf3
commit 91f12de
Showing
4 changed files
with
220 additions
and
99 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
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
Oops, something went wrong.