simplify
This commit is contained in:
@ -132,10 +132,9 @@ class AtomList(object):
|
|||||||
if index not in self._loaded:
|
if index not in self._loaded:
|
||||||
if self.dimensions == 2:
|
if self.dimensions == 2:
|
||||||
atom = Atom2D(self._pylmp, index)
|
atom = Atom2D(self._pylmp, index)
|
||||||
self._loaded[index] = atom
|
|
||||||
else:
|
else:
|
||||||
atom = Atom(self._pylmp, index)
|
atom = Atom(self._pylmp, index)
|
||||||
self._loaded[index] = atom
|
self._loaded[index] = atom
|
||||||
return self._loaded[index]
|
return self._loaded[index]
|
||||||
|
|
||||||
def __len__(self):
|
def __len__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user