Skip to content

Commit b62fa1b

Browse files
authored
Make incar tags case-insensitive in response to #86
1 parent cbbbc07 commit b62fa1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymatgen/io/validation/check_incar.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,9 @@ def _check_parameter(
866866

867867
append_comments = append_comments or ""
868868

869+
if isinstance(current_value, str):
870+
current_value = current_value.upper()
871+
869872
kwargs: dict[str, Any] = {}
870873
if operation == "approx" and isinstance(current_value, float):
871874
kwargs.update({"rel_tol": tolerance or self.tolerance, "abs_tol": 0.0})

0 commit comments

Comments
 (0)