Add __dir__() to Atom class

This commit is contained in:
Richard Berger
2021-03-16 14:21:19 -04:00
parent a8597de4be
commit 644b61cd1f

View File

@ -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):
"""