Skip to content

Commit 91b2f27

Browse files
committed
rename similar_params to same
1 parent ad96e80 commit 91b2f27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pymatgen/io/vasp/inputs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,21 +1117,21 @@ def diff(self, other: Self) -> dict[str, dict[str, Any]]:
11171117
{"Same" : parameters_that_are_the_same, "Different": parameters_that_are_different}
11181118
Note that the parameters are return as full dictionaries of values. E.g. {"ISIF":3}
11191119
"""
1120-
similar_params = {}
1120+
same_params = {}
11211121
different_params = {}
11221122
for k1, v1 in self.items():
11231123
if k1 not in other:
11241124
different_params[k1] = {"INCAR1": v1, "INCAR2": None}
11251125
elif v1 != other[k1]:
11261126
different_params[k1] = {"INCAR1": v1, "INCAR2": other[k1]}
11271127
else:
1128-
similar_params[k1] = v1
1128+
same_params[k1] = v1
11291129

11301130
for k2, v2 in other.items():
1131-
if k2 not in similar_params and k2 not in different_params and k2 not in self:
1131+
if k2 not in same_params and k2 not in different_params and k2 not in self:
11321132
different_params[k2] = {"INCAR1": None, "INCAR2": v2}
11331133

1134-
return {"Same": similar_params, "Different": different_params}
1134+
return {"Same": same_params, "Different": different_params}
11351135

11361136
def check_params(self) -> None:
11371137
"""Check INCAR for invalid tags or values.

0 commit comments

Comments
 (0)