Skip to content

Commit

Permalink
Capitalize INCAR keys by default. #4122
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Oct 18, 2024
1 parent 4f7aa35 commit 042bea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymatgen/io/vasp/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ def __setitem__(self, key: str, val: Any) -> None:
leading and trailing white spaces.
"""
super().__setitem__(
key.strip(),
key.strip().capitalize(),
type(self).proc_val(key.strip(), val.strip()) if isinstance(val, str) else val,
)

Expand Down

0 comments on commit 042bea3

Please sign in to comment.