pylammps: fix get atom.mass by atom.type

This commit is contained in:
yuhldr
2024-04-14 17:02:23 +08:00
parent 1346be4168
commit db1598fb08

View File

@ -196,7 +196,7 @@ class Atom(object):
:type: float
"""
return self.get("mass", self.index)
return self.get("mass", self.type)
@property
def radius(self):