Skip to content

Commit 47a7a47

Browse files
committed
fix tests
1 parent cebbc90 commit 47a7a47

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pymatgen/io/lammps/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,8 +1148,8 @@ def find_eq_types(label, section) -> list:
11481148
for dct in topo_coeffs[kw]:
11491149
main_data.append(dct["coeffs"])
11501150
distinct_types.append(dct["types"])
1151-
for key, val in class2_data.items():
1152-
class2_data[key].append(val)
1151+
for key, lst in class2_data.items():
1152+
lst.append(dct[key])
11531153
distinct_types = [set(itertools.chain(*(find_eq_types(t, kw) for t in dt))) for dt in distinct_types]
11541154
type_counts = sum(len(dt) for dt in distinct_types)
11551155
type_union = set.union(*distinct_types)

tests/io/vasp/test_outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1830,7 +1830,7 @@ def test_n2_spin(self):
18301830

18311831
orig_gen_g_points = Wavecar._generate_G_points
18321832
try:
1833-
Wavecar._generate_G_points = lambda _x, _y, _gamma: []
1833+
Wavecar._generate_G_points = lambda _x, _y, gamma: []
18341834
with pytest.raises(ValueError, match=r"not enough values to unpack \(expected 3, got 0\)"):
18351835
Wavecar(f"{VASP_OUT_DIR}/WAVECAR.N2")
18361836
finally:

0 commit comments

Comments
 (0)