Skip to content

Commit 173fc69

Browse files
committed
avoid Ambiguous variable name l
1 parent e914d3f commit 173fc69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pymatgen/io/vasp/inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,9 +2156,9 @@ def electron_configuration(self) -> list[tuple[int, str, float]]:
21562156
all_config: list[tuple[int, str, float]] = []
21572157
for line in lines[start_idx + 3 : start_idx + 3 + num_entries]:
21582158
parts = line.split()
2159-
n, l, _j, _E, occ = int(parts[0]), int(parts[1]), float(parts[2]), float(parts[3]), float(parts[4])
2159+
n, ang_moment, _j, _E, occ = int(parts[0]), int(parts[1]), float(parts[2]), float(parts[3]), float(parts[4])
21602160

2161-
all_config.append((n, l_map[l], occ))
2161+
all_config.append((n, l_map[ang_moment], occ))
21622162

21632163
# Get valence electron configuration (defined by ZVAL)
21642164
valence_config: list[tuple[int, str, float]] = []

0 commit comments

Comments
 (0)