-
Notifications
You must be signed in to change notification settings - Fork 879
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
Make Incar
keys case insensitive, fix init Incar
from dict val processing for str/float/int
#4122
Merged
shyuep
merged 37 commits into
materialsproject:master
from
DanielYang59:fix-4119-incar-tag-check
Oct 21, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
b9b3804
move ENCUT from int to float list
DanielYang59 a5ba6ca
remove str case sensitivity in check_params
DanielYang59 60e1a48
fix return type annotation
DanielYang59 945368b
fix unit test failure
DanielYang59 f0ebb34
use original key for warning msg
DanielYang59 37ac9f5
add duplicate check in check_params
DanielYang59 13b5a67
add test first, issue not fixed yet
DanielYang59 adcdba7
init from dict also use setter method and fix val filter logic
DanielYang59 bae2320
relocate test_from_file_and_from_dict
DanielYang59 44a06c3
Revert "init from dict also use setter method and fix val filter logic"
DanielYang59 6799044
remove seemingly unused monkeypatch
DanielYang59 966bb91
tweak type
DanielYang59 532cad0
make module level var all cap
DanielYang59 a24ac8e
casting to list doesn't seem necessary, remain iterator for lazy eval
DanielYang59 92bfc7e
add docstring to clarify parse list
DanielYang59 f1fb45b
Merge branch 'master' into fix-4119-incar-tag-check
shyuep fdc40b8
Merge branch 'master' into fix-4119-incar-tag-check
DanielYang59 552c006
Merge branch 'fix-4119-incar-tag-check' of https://github.com/DanielY…
DanielYang59 536eae5
remove duplicate check
DanielYang59 ba0f349
reduce indentation level
DanielYang59 198ce83
remove docstring of warn that doesn't exist
DanielYang59 a2da974
fix typo in incar tag ECUT -> ENCUT
DanielYang59 435320d
inherit from UserDict, and make more ops case insensitive
DanielYang59 51f5922
also override del and in methdos
DanielYang59 3b231be
issue warning for duplicate keys
DanielYang59 dbaaa98
enhance warning check
DanielYang59 f8b223c
tweak docstring
DanielYang59 f30e740
fix type of float/int casting
DanielYang59 259124d
enhance test for from_dict consistency check
DanielYang59 96ad945
relocate duplicate check to setter so that both from str and dict wou…
DanielYang59 fa58d0d
fix index error for vasprun
DanielYang59 8d5768e
move duplicate warning to init otherwise get false pos when update
DanielYang59 c350714
enhance unit test from type cast from dict
DanielYang59 48d2755
remove unnecessary get default
DanielYang59 b2e9a63
remove unnecessary type cast in check_params
DanielYang59 9dc98f9
tweak Incar docstring
DanielYang59 837a011
Merge branch 'master' into fix-4119-incar-tag-check
DanielYang59 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before migrating to subclassing
UserDict
, the setter method is not triggered throughupdate
method when init from a dict, therefore these values remain as is (BSE
) when it should be capitalized (Bse
).pymatgen/src/pymatgen/io/vasp/inputs.py
Lines 718 to 737 in ed8542d