diff --git a/python/lammps/pylammps.py b/python/lammps/pylammps.py index 284dc72faa..d3af62a588 100644 --- a/python/lammps/pylammps.py +++ b/python/lammps/pylammps.py @@ -132,6 +132,9 @@ class Atom(object): self._pylmp = pylammps_instance self.index = index + def __dir__(self): + return [k for k in super().__dir__() if not k.startswith('_')] + @property def id(self): """