diff --git a/python/lammps.py b/python/lammps.py index 598e4c506f..a60b9420c8 100644 --- a/python/lammps.py +++ b/python/lammps.py @@ -986,7 +986,7 @@ class PyLammps(object): elif line.startswith("Dihedrals"): parts = self._split_values(line) system['ndihedrals'] = int(self._get_pair(parts[0])[1]) - system['nangletypes'] = int(self._get_pair(parts[1])[1]) + system['ndihedraltypes'] = int(self._get_pair(parts[1])[1]) system['dihedral_style'] = self._get_pair(parts[2])[1] elif line.startswith("Impropers"): parts = self._split_values(line)