Skip to content

Commit 17476d6

Browse files
authored
Merge pull request #345 from Vibsteamer/patch-2
fix_bug Lammps.py
2 parents d67aa7f + 9995d6a commit 17476d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpgen/auto_test/Lammps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ def compute(self,
311311
dlog.debug(_tmp)
312312
type_map_list = lammps.element_list(self.type_map)
313313

314-
type_list_set = set(type_list)
314+
type_map_idx = list(range(len(type_map_list)))
315315
atom_numbs = []
316-
for ii in type_list_set:
316+
for ii in type_map_idx:
317317
count = 0
318318
for jj in type_list:
319319
if jj == ii:

0 commit comments

Comments
 (0)